예제 #1
0
 def printBetsWon(self):
     l = [[
         bet.player.name,
         bet.type.title(), '$' + str(bet.wager), '$' + str(bet.winnings)
     ] for bet in self.completedBets if bet.status == 'win']
     l.insert(0, ['Player', 'Bet', 'Wagered', 'Winnings'])
     return util.col(l)
예제 #2
0
 def printBets(self):
     l = [[self.name, bet.type.title(), '$' + str(bet.wager)]
          for bet in self.bets.values()]
     l.insert(0, ['Player', 'Bet', 'Amount'])
     return util.col(l)
예제 #3
0
 def printPlayers(self):
     l = [[player.name, '$' + str(player.bankroll)]
          for player in self.players.values()]
     l.insert(0, ['Player', 'Bankroll'])
     return util.col(l)
예제 #4
0
 def printBets(self):
     l = [[bet.player.name,
           bet.type.title(), '$' + str(bet.wager)] for bet in self.bets()]
     l.insert(0, ['Player', 'Bet', 'Wagered'])
     return util.col(l)