예제 #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)