UserPreferences

Examples


  1 2 3    1 3      1 3 4    1 3      7 1 2    8 1 2
  8   4    8 2 4    8 6 2    4 2 5    8   3    7   4
  7 6 5    7 6 5      7 5    8 7 6    6 5 4    6 5 3
  goal       A        B        C        D        E

goal = EightPuzzleState(1,2,3,8,' ',4,7,6,5)
A    = EightPuzzleState(1,3,' ',8,2,4,7,6,5)
B    = EightPuzzleState(1,3,4,8,6,2,' ',7,5)
C    = EightPuzzleState(1,3,' ',4,2,5,8,7,6)
D    = EightPuzzleState(7,1,2,8,' ',3,6,5,4)
E    = EightPuzzleState(8,1,2,7,' ',4,6,5,3)

SolveIt(A, goal)
SolveIt(B, goal)
SolveIt(C, goal)
SolveIt(D, goal)
SolveIt(E, goal)