The Slide-Puzzle is the generalised version of the 8-puzzle problem) The problem: The 8-puzzle problem is a puzzle popularized by Sam Loyd in the 1870s. It is played on a 3-by-3 grid with 8 square blocks labeled 1 through 8 and a blank square. The goal is to rearrange the blocks so that they are in order. The player is permitted to slide blocks horizontally or vertically into the blank square.
See Live Slider-Puzzle
- User slides tiles with arrow keys
- User wins when all tiles are in order
- User can see winning time
- User can reset board
- User can play a variety of board sizes
- User can see top scores
- User can set a top score
- User can submit their top score
Slider-Puzzle uses a number of open source projects to work properly:
- React - Open-source JavaScript library providing a view for data rendered as HTML
- react-motion - A spring that solves your animation problems.
- Heroku - Create, deploy, and manage apps in the cloud
- Material UI - Google's material design UI components built with React.
Requires Node.js v6+ to run.
Install the dependencies and devDependencies and start the server.
SET MONGOLAB_URI=mongodb://User:[email protected]:47995/melodymap
npm install
npm run
- Write tests
- Add code comments
- Mouse control
- Add move history and option to watch replays
- Add React Motion