Zialus / IA-8-Puzzle-Solver-Swift

8 Puzzle Solver with 7 different algorithms(for now) for a CS Artificial Inteligence Class

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

8-Puzzle-Solver-Swift

A swift implementation of 7 different algorithms to solve the 8-puzzle game.

Swift Platform CI Pipeline

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.

About

8 Puzzle Solver with 7 different algorithms(for now) for a CS Artificial Inteligence Class


Languages

Language:Swift 98.8%Language:Makefile 1.2%