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