コード例 #1
0
ファイル: test_war.py プロジェクト: treujc/Notebook
def test_war_size():
    game = War(war_size=5, human=False)
    game.play_round()  #Play first to shuffle hand
    game.war()
    n.assert_equal(len(game.pot), 10)
コード例 #2
0
ファイル: test_war.py プロジェクト: Keita1/Learning
def test_war_size():
    game = War(war_size=5, human=False)
    game.play_round() #Play first to shuffle hand
    game.war()
    n.assert_equal(len(game.pot), 10)
コード例 #3
0
ファイル: test_war.py プロジェクト: treujc/Notebook
def test_play_round():
    game = War(human=False)
    game.play_round()
    n.assert_equal(len(game.player1) + len(game.player2), 52)
コード例 #4
0
ファイル: test_war.py プロジェクト: Keita1/Learning
def test_play_round():
    game = War(human=False)
    game.play_round()
    n.assert_equal(len(game.player1) + len(game.player2), 52)