|
||||||||||
subsection contents |
Sliding Tile PuzzleThis is an implementation of the classic "15 Puzzle". The object is to arrange the tiles in order by sliding them around. A timer keeps track of how long it takes to solve the puzzle. See below for notes. While developing this application I was able to verify that not all initial tile orderings can be solved. In fact, a randomly selected ordering has a 50% probability of being solved. To spare the player unnecessary frustration, I've included a check to ensure only solvable tile orderings are presented. The solvability algorithm is described at Wolfram MathWorld: 15 Puzzle. Tested with Safari, Firefox and Opera on Mac OS X. According to Browsershots, the page loads and appears to work with Firefox, Chrome, Safari, Opera and Internet Explorer (versions 5.5 to 8.0) on Windows.
Notes
Future enhancements
Last updated: April 23, 2009 |
|||||||||