- Clone the Poker Table system here and set it up (instructions provided on that repo).
- Clone this repository.
pip install -r requirements.txt cd pokerbot- Run an example bot using the strategy provided (
example_strat_1.py). All you have to do for this have two or more team members runmain.pyand connect to server provided (edit server and port details in a.envfile). (Or you can run multiple bots in different terminals.) - Once you understand how the game proceeds, look at
example_strat_2.pyfor a very bare bones approach of how you can think about making a Poker bot that thinks algorithmically. Change line 21 inmain.pyto useexample_strat_2instead. - Once you understand this, you can proceed to
example_strat_3.pywhich is a little more complicated but nothing too crazy. - If you have any questions, reach out to any organizing members walking around. Good luck!
Some data definitions are provided below, but it is not necessary to use them.
The private_state dictionary provides:
hole_cards: Your two private cards. community_cards: Shared cards on the table (flop, turn, river). pot: Total amount of chips collected for the current hand. available_actions: The actions you can take (combination of "check, call, raise, fold, bet") current_bet: Chips required to stay in the game. min_raise: Minimum total amount to put in if you want to raise. max_bet: The maximum you can bet in this turn. stack_size: Total chips your bot has. Use this information to evaluate the situation and implement your strategy.