HarperJonesGPT / PokerGPT

Pokerstars bot that plays real-time poker using GPT4
MIT License
48 stars 18 forks source link
poker pokerai pokerbot pokerscript pokerstars pokerstars-hand-history

PokerGPT - GPT4 poker bot for Pokerstars

PokerGPT is an advanced online poker-playing bot for Pokerstars(6-player Texas Hold'em, Cash game) that utilizes the OpenAI GPT-4 API for real-time game state analysis and decision-making. It has built-in GUI to visualize poker data + voice support to playback actions on the table.

PokerGPT_GUI

Features

Prerequisites

Installation

  1. Clone the repository to your local machine.
  2. Install the required Python dependencies by running pip install -r requirements.txt.
  3. Set up your OpenAI API key in the pokergpt.env file. (register free account at https://openai.com/ and get your API key here: https://platform.openai.com/api-keys)
  4. Make sure Tesseract OCR is installed and its path is correctly set in the scripts(Tesseract is included and path set).

PokerStars client (Visual) setup:

  1. Since this bot reads all of the data from the poker client window, you will need to setup the visuals excactly like in this image:
  2. Disable all animations for Pokerstars client in the table settings. PokerTable2

Usage

To start the PokerGPT, follow these steps:

  1. Open Pokerstars client and ensure it's visible on the screen.
  2. Run main.py to initiate the bot: python main.py.
  3. Enter your own player number (player numbers start from the bottom of the table and goes clockwise 1(bottom), 2(bottom-left), 3(top-eft), 4(top), 5(top-right), 6(bottom-right))
  4. The bot will automatically locate the poker window and start playing based on the GPT-4 strategy analysis.

Structure

Limitations

Contributing

Contributions to PokerGPT are welcome!

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Support

I do not provide any further support for this project. If you can't figure it out, it's not for you.