Skip to content

mpimble/acm_pokerbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PokerBot

🤖 How to Build Your Own Strategy

  1. Clone the Poker Table system here and set it up (instructions provided on that repo).
  2. Clone this repository.

Installation

pip install -r requirements.txt cd pokerbot
  1. 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 run main.py and connect to server provided (edit server and port details in a .env file). (Or you can run multiple bots in different terminals.)
  2. Once you understand how the game proceeds, look at example_strat_2.py for a very bare bones approach of how you can think about making a Poker bot that thinks algorithmically. Change line 21 in main.py to use example_strat_2 instead.
  3. Once you understand this, you can proceed to example_strat_3.py which is a little more complicated but nothing too crazy.
  4. 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.

📊 Understanding private_state

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.

About

ACM Poker Bot Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%