예제 #1
0
 def _choose_action(self, chars):
     """
     """
     char = chars.pop(utils.choose_character(chars))
     actions = self.engine.get_possible_moves()
     action = actions[utils.choose_move(actions)]
     return actions
예제 #2
0
 def _choose_move(self, positions):
     """
     """
     choice = utils.choose_move(positions)
     return positions[choice]
예제 #3
0
 def _text_choose_move(self, chars):
     char = chars.pop(utils.choose_character(chars))
     moves = self.engine.get_possible_moves()
     move = moves[utils.choose_move(moves)]
     return moves