Beispiel #1
0
 def testWinningDraw(self):
     o = Outcome(WinningPlayer(), WinningPlayer())
     self.assertTrue(o.get_winning_strategy() is None)
Beispiel #2
0
 def testLosingVWinning(self):
     o = Outcome(LosingPlayer(), WinningPlayer())
     self.assertEqual("Winning Strategy", o.get_winning_strategy())
Beispiel #3
0
 def testWinningVLosing(self):
     winner = WinningPlayer()
     loser = LosingPlayer()
     o = Outcome(winner, loser)        
     self.assertEqual("Winning Strategy", o.get_winning_strategy())