8-Puzzle-Solver-Swift
A swift
implementation of 7 different algorithms to solve the 8-puzzle game.
Instructions
How to compile
To compile just run the makefile, by executing the following command on the terminal:
make
How to run
./8PuzzleSolver
For additional debug functionality you can run the program with one of the following parameters:
debug
fulldebug
For example:
./8PuzzleSolver debug
INPUT
Example:
3 4 2 5 1 7 6 0 8
1 2 3 8 0 4 7 6 5
That input is equivalent to the two following game tables:
3 4 2 1 2 3
5 1 7 8 4
6 8 7 6 5
0
represents the blank position.