コード例 #1
0
ファイル: npuzzle.py プロジェクト: nibichua/CS550_A2
 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