Icontem

Fifteen Puzzle: Implement the Fifteen puzzle game

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2014-05-02 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 158 This week: 1All time: 294 This week: 22Up
Version License JavaScript version Categories
fifteen-puzzle 1.0GNU General Publi...1.0Games
Description 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.

Picture of Mark Rolich
  Performance   Level  
Name: Mark Rolich <contact>
Classes: 13 packages by
Country: Armenia Armenia
Innovation award
Innovation award
Nominee: 6x

Winner: 1x

Details
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
  Files folder image Files  
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

Downloadfifteen-puzzle-2014-05-02.zip 4KB
Downloadfifteen-puzzle-2014-05-02.tar.gz 3KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Event Download .zip .tar.gz for cross-browser event handling Required
 Version Control Unique User Downloads Download Rankings  
 100%
Total:158
This week:1
All time:294
This week:22Up