Icontem

Fifteen Puzzle: Implement the Fifteen puzzle game

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 152 All time: 277 This week: 61Up
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
Name: Mark Rolich <contact>
Classes: 11 packages by
Country: Armenia Armenia
Age: 34
All time rank: 161 in Armenia Armenia
Week rank: 16 Equal1 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 5x

Winner: 1x

Details provided by the author  
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:152All time:277
 This week:0This week:61Up