예제 #1
0
 def actions(self, state):
     "actions(state) - find a set of actions applicable to specified state"
     #create a temporary board from current state, return its actions
     temporaryboard = TileBoard(self.puzzletype,force_state=state.state_tuple())
     return temporaryboard.get_actions()
예제 #2
0
 def actions(self, state):
     "actions(state) - find a set of actions applicable to specified state"
     actionBoard = TileBoard(self.size, False, state)
     actions = actionBoard.get_actions()
     return actions