isGoal::MyState->Bool
Closed this issue · 0 comments
Omar-Nour commented
The function takes as input a state, returns true if the input state has no more
mines to collect (the list of mines is empty), and false otherwise.
Example:
isGoal (S (3,1) [] "collect" (S (3,1) [(3,1)]
"right" (S (3,0) [(3,1)] "" Null))) = True
isGoal (S (3,1) [(3,1)] "right" (S (3,0) [(3,1)] "" Null)) = False