Skip to content

tusharv/15PuzzleGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

15 Puzzle Game

The 15-puzzle (also called Gem Puzzle, Boss Puzzle, Game of Fifteen, Mystic Square and many others) is a sliding puzzle that consists of a frame of numbered square tiles in random order with one tile missing. The puzzle also exists in other sizes, particularly the smaller 8-puzzle. If the size is 3×3 tiles, the puzzle is called the 8-puzzle or 9-puzzle, and if 4×4 tiles, the puzzle is called the 15-puzzle or 16-puzzle named, respectively, for the number of tiles and the number of spaces. The object of the puzzle is to place the tiles in order by making sliding moves that use the empty space.

How to Play?

Once you start game puzzle will shuffle and you need to rearrange it by clicking box which is adjecent to blank box

Links

GitHub Page

Known Issue

Sometimes it generates puzzle which is not solvable. There is algorithm to detect, if it's solvable or not but it's yet to be implemented here.

Reference

  1. Wikipedia 15 Puzzle
  2. Check if puzzle is solvable or not?
  3. Solvability of the Tiles Game - Mark Ryan

About

15 Puzzle game using JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published