With this project I learned a lot of multidimensional array and get the knowledge to do my second project as a puzzle: Angular Minesweeper.
The object of the fifteen puzzle is to place the tiles in order by making sliding moves that use the empty space whith as fewer moves as possible.
You can see the code on Github:
Fifteen Puzzle Game
Rearrange the pieces in order with as fewer moves as possible.
- Type how many moves you want the board to be shuffled with (any value between 1 and 80).
- Click shuffle button and see the pieces shuffling.
- Try to rearrange the board with the same (or even fewer) number of moves that it was shuffled by clicking the pieces that has space to move. The pieces should be in ascending order from left to right, up to down.
npm run webpack to build the project. The build artifacts will be stored in the