Giter VIP home page Giter VIP logo

poker-ai's Introduction

Poker AI

Poker AI is a Texas Hold'em poker tournament simulator which uses player strategies that "evolve" using a John Holland style genetic algorithm.

Poker AI

The user can configure a "Evolution Trial" of tournaments with up to 10 players, or simply play ad-hoc tournaments against the AI players. Between tournaments, the performance of each player's strategy is analyzed and classified according to a fitness function, the best of which are bred and supplied to the following generation used in the subsequent tournament. Over many generations, the strategies improve to become more likely to win. State data is continuously logged to an Oracle database for analysis.

Player strategies are represented as Python programs corresponding to a chromosome. Manipulation of the chromosome (crossover and mutation) result in changes to the Python program. The program is called whenever it is that player's turn.

The Python program has access to various sets of data:

  • Possible moves currently available given the current game state (fold, bet, raise)
  • The player's private state information (hole cards)
  • Public game state information (current round of play, last to raise, etc.)
  • Public competitor player state information (how much money each player currently has, how many folds each player has made in previous rounds, how many games each player has won, etc.).

The program is responsible for returning what move the player should make and whatever money is involved (ex, raise 50).

For high quality data for analysis, evolution trials are typically very large. As such, the program allows for multithreaded tournament play, and contribution to evolution trial runs from an arbitrary number of machines. Every move is logged, which provides the ability to load any historical state to observe the strategies in action.

poker-ai's People

Contributors

booherm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.