Esempio n. 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
Esempio n. 2
0
 def _choose_move(self, positions):
     """
     """
     choice = utils.choose_move(positions)
     return positions[choice]
Esempio n. 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