15-puzzle
15-puzzle copied to clipboard
Add keyboard navigation
I'm thinking the arrow keys and wasd
should be used.
How I see it:
- at any moment, you have two or three tiles that can move, depending on the grid
- the keypress should determine which tile moves, if a tile that can move to the direction indicated by the key exists, then it should move, otherwise, move the next tile
Still wondering if there are more edge cases here...