コード例 #1
0
ファイル: test_pig.py プロジェクト: rryanburton/kb
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]
コード例 #2
0
ファイル: test_pig.py プロジェクト: rryanburton/kb
def test_game_round_works():
    game = Game(always_roll_6, StopAt20Player(), StopAt20Player())
    game._current_player = 0
    game.play_round()

    assert game.scores == [24, 0]