This class provides an API for any sub-class of problem solvable by the Search
||Methods defined here:|
- goalTest(self, state)
- # Returns True if state is a goal state, False otherwise.
- # Returns initial state of problem.
- stepCost(self, state, action, result)
- # Returns cost of reaching result state by taking action on given state.
- successorFn(self, state)
- # Returns list of successors of a state, where each successor is specified
# as a pair (action, result).
- takeAction(self, state, action)
- # Performs the specified action to get to the specified state.