def choose_moves(self, game_state: BotGameState, moves): if not game_state.my_train.is_public: return moves chosen_moves = [move for move in moves if move.train == game_state.my_train] return MoveChooser.get_results(chosen_moves, moves)
def choose_moves(self, game_state: BotGameState, moves): played_numb = self.played_numb_from_moves(game_state, moves) chosen_moves = [move for move in moves if game_state.played_count[move.domino.get_other_number(move.train.requires)] == played_numb] return MoveChooser.get_results(chosen_moves, moves)
def choose_moves(self, game_state: BotGameState, moves): most_tiles = get_most(game_state) chosen_moves = [move for move in moves if move.train.owner_tile_count == most_tiles and not move.train.am_owner] return MoveChooser.get_results(chosen_moves, moves)
def choose_moves(self, game_state: BotGameState, moves): chosen_moves = [move for move in moves if move.domino.is_double] return MoveChooser.get_results(chosen_moves, moves)
def choose_moves(self, game_state: BotGameState, moves): target_score = max([move.domino.left + move.domino.right for move in moves]) chosen_moves = [move for move in moves if move.domino.left + move.domino.right == target_score] return MoveChooser.get_results(chosen_moves, moves)
def choose_moves(self, game_state: BotGameState, moves): chosen_moves = [move for move in moves if move.train.am_owner] return MoveChooser.get_results(chosen_moves, moves)