Skip to content
The classic Fifteen Puzzle Game made with Vanilla JavaScript.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
src
.babelrc
.gitignore
README.md
index.html
package-lock.json
package.json
postcss.config.js
webpack.config.js

README.md

Fifteen Puzzle Game

Rearrange the pieces in order with as fewer moves as possible.

Instructions:

  1. Type how many moves you want the board to be shuffled with (any value between 1 and 80).
  2. Click shuffle button and see the pieces shuffling.
  3. 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.

Learn more about the Fifteen Puzzle on Wikipedia

Play the game

You can’t perform that action at this time.