def test_after_turn_hands_exchange_two_player(): p1 = Player("bob") p2 = Player("sharon") game = Game(deck=StandardDeck(), agents=[p1, p2], n_rounds=2) print(game.scores) scores0 = game.end_results() game.play_round() scores1 = game.end_results() game.play_round() scores2 = game.end_results() print(scores1) print(scores2) assert scores0['bob'] == 0.0 assert scores1['bob'] > 0.0 assert scores2['bob'] > 0.0 assert scores2['sharon'] > 0.0
def test_after_turn_hands_exchange_three_player(): p1 = Player("bob") p2 = Player("sharon") p3 = Player("alice") game = Game(deck=StandardInfiniDeck(), agents=[p1, p2, p3], n_rounds=3) scores0 = game.end_results() game.play_round() scores1 = game.end_results() game.play_round() scores2 = game.end_results() game.play_round() scores3 = game.end_results() assert scores3['bob'] > scores1['bob'] assert scores3['alice'] > scores0['alice'] assert scores3['bob'] > scores1['bob'] assert scores3['sharon'] > scores1['sharon']