Esempio n. 1
0
 // checks if board macthes goal
 public bool isGoal(Node n)
 {
     return(n.getState().getcurrentBoard().SequenceEqual(goal));
 }
Esempio n. 2
0
 //equals method to check wether state of 2 boards are equal
 public bool Equals(Node n)
 {
     return(n.getState().getcurrentBoard().SequenceEqual(this.getState().getcurrentBoard()));
 }