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)
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)
def printPlayers(self): l = [[player.name, '$' + str(player.bankroll)] for player in self.players.values()] l.insert(0, ['Player', 'Bankroll']) return util.col(l)
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)