Example #1
0
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)
Example #2
0
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)
Example #3
0
def test_play_round():
    game = War(human=False)
    game.play_round()
    n.assert_equal(len(game.player1) + len(game.player2), 52)
Example #4
0
def test_play_round():
    game = War(human=False)
    game.play_round()
    n.assert_equal(len(game.player1) + len(game.player2), 52)