def test_game_round_works_if_player_roll_a_1(): game = Game(programmable_die([6, 6, 1]), StopAt20Player(), StopAt20Player()) game._current_player = 0 game.play_round() assert game.scores == [0, 0]
def test_game_round_works(): game = Game(always_roll_6, StopAt20Player(), StopAt20Player()) game._current_player = 0 game.play_round() assert game.scores == [24, 0]