def start_new_game(self): """print statistics out before starting a new game""" PyPokiBot.start_new_game(self) if self.me: me = self.me try: win_pct = me.flops_seen / float(me.wins) except ZeroDivisionError: win_pct = 0 #is the bb always 2*sb? bb_per_100 = me.money_won / float(self.bet_size * 2) self.log("cash: $%d wins: %d%% (%d bb/100)" % \ (me.money_won, win_pct, bb_per_100)) else: print "I'm not in right now"
def start_new_game(self): """print statistics out before starting a new game""" PyPokiBot.start_new_game(self) if self.me: me = self.me try: win_pct = me.flops_seen / float(me.wins) except ZeroDivisionError: win_pct = 0 #is the bb always 2*sb? bb_per_100 = me.money_won / float(self.bet_size * 2) self.log("""I have $%d and have won %d%% of the hands I've played this session (%d%% bb/100)""" % (me.money_won, win_pct, bb_per_100)) else: print "I'm not in right now"
def __init__(self): PyPokiBot.__init__(self, 'AardvarkBot', 'Varkonyi', 'AardvarkBot') self.logfile = open('opcbot.log', 'w') self.heval = HoldemHandEvaluator() try: PyPokiBot.login(self) except KeyboardInterrupt: PyPokiBot.quit(self)