Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mohamedashraf1/slider-puzzle

Slider n-by-n Puzzle
https://github.com/mohamedashraf1/slider-puzzle

Last synced: 10 days ago
JSON representation

Slider n-by-n Puzzle

Awesome Lists containing this project

README

        

# Slider-Puzzle

The 8-puzzle is a sliding puzzle that is played on a 3-by-3 grid with 8 square tiles labeled 1 through 8, plus a blank square.

it also can be played with any n-by-n grid labeled 1 through n - 1, and the 0 for the blank square

The goal is to rearrange the tiles so that they are in row-major order, using as few moves as possible.

You are permitted to slide tiles either horizontally or vertically into the blank square

# A* Search Algorithm

it use the A* Search Algorithm to get the nearest path by calculating the Manhattan sum and other properites