Skip to content

Miaad2004/Sliding-Puzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sliding Puzzle

This game is a sliding puzzle with variable table sizes.

How To Solve The Table?

There is always an unoccupied tile that can be moved by pressing the arrow keys on the keyboard. Tiles in the same row or column as the unoccupied tile can be moved by sliding them horizontally or vertically, respectively. The goal of the puzzle is to place the tiles in ascending numerical order. For more information check out: www.instructables.com/How-To-Solve-The-15-Puzzle

Gameplay

Gameplay

How Does It Work?

Generating a Random Table

Player movements are simulated multiple times(based on the difficulty level) therefore there is no need to check if the table is solvable or not after the shuffling.

Graphical Table

Tables bigger than 4 by 4 are printed as numbers rather than graphical objects.

Large Table

How Are The Scores Calculated?

Scores are calculated based on the table size, difficulty level, number of movements & the time taken.

Scoreboard

Scoreboard