Skip to content

vapte/PokerBots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PokerBots: Backtesting for Computer Poker

This project is a suite for designing and testing poker artificial intelligence (AI) machines using the MIT PokerBots Engine. The engine runs a game of Pot Limit Texas Hold’Em with up to 3 players, each of which send/receive packets from the engine (except for ‘random’ and ‘checkfold’ bots which are run within the engine).

The primary script, Player.py, executes the following in order:

  1. Starts user input for game parameters (bots, hands, blind size)
    • saves game parameters using pickle
  2. Executes bash script, which runs a .jar file (the game engine)
    • engine generates text logs for each game
  3. Start threads for each individual bot
  4. Attach bots to sockets on game engine
  5. Log game results using pickle
  6. Start game footage graphics
    • read in logs from pickle files
  7. Terminate engine process

(bot processes self-terminate)

Requirements:

numpy
python 3+

Running the simulator:

python Player.py

Writing your own bot:

#yourbot.py

from playerclass import *
from db import *

class YourBot(Player):
    def __init__(self,name):
        super().__init__(name)
        self.type = 'yourbot'

    #bot control function
    def botLogic(self):
    	...

About

Backtesting for Computer Poker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published