for serial in xrange(PLAYER1, PLAYER4 + 1): game.addPlayer(serial) game.payBuyIn(serial, 2000*100) game.sit(serial) game.autoBlindAnte(serial) # # Post the blinds and deal the pocket cards. PLAYER1 # is the dealer, PLAYER2 pays the small blind, PLAYER3 # pays the big blind. # game.beginTurn(1) # # PLAYER4 calls under the gun # game.call(PLAYER4) # # The dealer and small blind fold # game.fold(PLAYER1) game.fold(PLAYER2) # # The big blind checks # game.check(PLAYER3) # # PLAYER3 and PLAYER4 check the flop # game.check(PLAYER3) game.check(PLAYER4) #
game.botPlayer(PLAYER2) game.botPlayer(PLAYER3) game.botPlayer(PLAYER4) import random while game.possibleActions(PLAYER1): actions = game.possibleActions(PLAYER1) assert len(actions) rnd = random.randint(0, len(actions)-1) action = actions[rnd] if action == 'fold': game.fold(PLAYER1) elif action == 'check': game.check(PLAYER1) elif action == 'call': game.call(PLAYER1) elif action == 'raise': game.callNraise(PLAYER1, 0) else: raise Exception('unknown action' + action) ''' # # PLAYER4 calls under the gun # game.call(PLAYER4) # # The dealer and small blind fold # game.fold(PLAYER1) game.fold(PLAYER2)
game.botPlayer(PLAYER2) game.botPlayer(PLAYER3) game.botPlayer(PLAYER4) import random while game.possibleActions(PLAYER1): actions = game.possibleActions(PLAYER1) assert len(actions) rnd = random.randint(0, len(actions) - 1) action = actions[rnd] if action == 'fold': game.fold(PLAYER1) elif action == 'check': game.check(PLAYER1) elif action == 'call': game.call(PLAYER1) elif action == 'raise': game.callNraise(PLAYER1, 0) else: raise Exception('unknown action' + action) ''' # # PLAYER4 calls under the gun # game.call(PLAYER4) # # The dealer and small blind fold # game.fold(PLAYER1) game.fold(PLAYER2) #
for serial in xrange(PLAYER1, PLAYER4 + 1): game.addPlayer(serial) game.payBuyIn(serial, 1500 * 100) game.sit(serial) game.autoBlindAnte(serial) # # Post the blinds and deal the pocket cards. PLAYER1 # is the dealer, PLAYER2 pays the small blind, PLAYER3 # pays the big blind. # game.beginTurn(1) # # PLAYER4 calls under the gun # game.call(PLAYER4) # # The dealer and small blind fold # game.fold(PLAYER1) game.fold(PLAYER2) # # The big blind checks # game.check(PLAYER3) # # PLAYER3 and PLAYER4 check the flop # game.check(PLAYER3) game.check(PLAYER4) #