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

https://github.com/darkprinx/8-puzzle-solver

A program that solves a given 8 puzzle efficiently and shows related results of the solution
https://github.com/darkprinx/8-puzzle-solver

artificial-intelligence astar heuristics puzzle-solver

Last synced: about 1 month ago
JSON representation

A program that solves a given 8 puzzle efficiently and shows related results of the solution

Awesome Lists containing this project

README

          

# 8-Puzzle-Solver
The program solves a user given 8 puzzle efficiently and shows related results of the solution.

## Overview
At the beginning of the program it will ask to give a puzzle input that needs to be solved. For example if the required puzzle is

`````
5 2 3
1 8
6 4 7
`````
then the user input will be like

`````````````````
5 2 3 0 1 8 6 4 7 // here zero represents an empty grid
`````````````````
Make sure to take the inputs between 0 to 8. Any types of invalid input will result to ignore the process and ask to give valid input again.

## Features

* Avoids invalid input
* Checks solvability of the puzzle
* Shows minimum steps to solve
* Shows simulation procedure of full solution
* Shows all move direction steps
* Shows total required time of the solution
* Shows total steps moved during solution