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()
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