jjst / ultimate-tictactoe

An implementation of ultimate tictactoe in Elm
MIT License
15 stars 0 forks source link

Subtly highlight last played move #19

Closed jjst closed 4 years ago

jjst commented 7 years ago

This would help figure out what was the last move played by your opponent, especially useful in remote games or games against the AI.

Probably requires a model change to keep track of what the last move was.

On the view side the change might be a bit complicated as it will most likely require passing down what the last move was in order to do some style trickery to highlight it.

jjst commented 4 years ago

Could use an SVG animation that makes the move progressively appear, or fade in and fade out

jjst commented 4 years ago

Something like this: https://jsfiddle.net/8k0rLbt5/

jjst commented 4 years ago

Done purely in CSS by styling the SVG! In 60dc4c1b4b8e1c971ba2b69dde4e81b21b3a4ddd

jjst commented 4 years ago

There's some bugs, but it mostly works :D