- gcc 5.4.0
gcc -o 15Puzzle_a_star 15Puzzle_a_star.c
./15Puzzle_a_star x y z
-
x: I prepare two predefined state in code.If you want execute these state,please enter 1 or 2.If you want random generate state, enter 0.
-
y: 0 for dsplay step by step , 1 for display 3 steps a time.
-
z: 0 for ida* algorithm ,1 for a* algorithm.