Author
This object can implement the Fifteen puzzle game.
It can render a board of fifteen pieces initially in shuffled positions.
The class can process the click events on the pieces and move them to empty spaces until the user sorts the position of all pieces correctly.
Javascript implementation of "Fifteen puzzle" game (http://en.wikipedia.org/wiki/15_puzzle) Demo: http://mark-rolich.github.io/FifteenPuzzle.js/demo/index.html Tested in the following browsers: IE 6.0 - 8.0, FF 17, Chrome 22, Safari 5.1.1 FifteenPuzzle.js requires Event.js package, which can be acquired at the following links: Github - https://github.com/mark-rolich/Event.js JS Classes - http://www.jsclasses.org/package/212-JavaScript-Handle-events-in-a-browser-independent-manner.html Copyright (C) 2012 Mark Rolich
| File | Role | Description |
|---|---|---|
| Accessible without login Plain text file fifteenpuzzle.css | Data | Demo styles |
| Accessible without login Plain text file fifteenpuzzle.html | Example | Demo without graphics |
| Plain text file FifteenPuzzle.js | Class | Main function |
| Accessible without login Plain text file license.txt | Lic. | LICENSE |
| Accessible without login Plain text file README | Data | README |
| Class | Download | Why it is needed | Dependency |
|---|---|---|---|
| Event | Download .zip .tar.gz | for cross-browser event handling | Required |
Add link image If you know an application of this package, send a message to the author to add a link here.