def p1_wins(self): g = Game() g[game_end] = True g[0 + vp] = 5 g.proceed() self.assertEqual(states.p1_victory, g[state])
def p2_wins(self): g = Game() g[game_end] = True g[5 + vp] = 5 g.proceed() self.assertEqual(g[state], states.p2_victory)
def draw(self): g = Game() g[game_end] = True g.proceed() self.assertEqual(states.draw, g[state])