예제 #1
0
 def testWinAmount(self):
     o = Outcome('red', 1)
     b = Bet(1, o)
     self.assertEqual(b.winAmont(), 2)
예제 #2
0
 def win(self, bet: Bet):
     self.stake += bet.winAmont()
     self.lossCount = 0