/N-Puzzle

Solves generalization of 15 Puzzle using A* Search

Primary LanguageJava

N-Puzzle

Generalization of the Sliding Puzzle game

Usage

java Puzzle in.txt out.txt

where in.txt contains a space-delimited NxN matrix containing numbers 1 to N2 - 1 and one X marking the empty space.

Example:

1 2 3
4 X 5
7 8 6