def main(): team = [0] game = generate_game(seed) cur_state = game.first_state() mm = Minimax(game) for tokens in game.pieces: print(tokens) first_value = mm.find(cur_state) while not game.is_over(cur_state): print(cur_state) value = mm.find(cur_state) print(value) moves = mm.get_moves(cur_state) move = moves[0] print(move) cur_state = game.apply(cur_state, move) assert first_value == value