n-Puzzle in JavaScript


1
2
3
13
14
10
6
4
12
9
15
11
5
7
8



X

Moves: 161

From Wikipedia - The n-puzzle is a classical problem for modelling algorithms involving heuristics.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 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.
Continue Reading Here



Developed by rupojs