Instructions:
- In the "Shuffle moves" input, type how many moves you want the board to be shuffled with (any value between 1 and 80).
- Click on the "Shuffle" button and watch the pieces shuffling around.
- Try rearranging the board with the same (or even fewer) number of moves than it was initially shuffled by clicking on the pieces with space to move. The pieces should be placed in ascending order from left to right, up to down.
- Clone this repository to your machine.
- Run
npm install
to install all the dependencies. - Run
npm run start
to start the server and openhttp://localhost:8080
on the browser. The site will reload automatically when changes in the source files are saved.
- Run
npm run build
to build the project. The built artifacts will be stored in thedist/
directory.
Learn more about the Fifteen Puzzle game on Wikipedia.