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