GithubHelp home page GithubHelp logo

fschlatt / clubs Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 3.0 447 KB

python poker engine for arbitrary community card poker games

License: GNU General Public License v3.0

Python 96.52% Shell 0.18% JavaScript 2.57% CSS 0.42% HTML 0.31%
blinds clubs community-cards machine-learning poker poker-game python raise-sizes reinforcement-learning

clubs's People

Contributors

fschlatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

clubs's Issues

Dealer.reset() doesn't update button position correctly

Hi @fschlatt,

First of all, thanks for taking the time to write this library and making it public!

I think line 267 of engine.py is missing a parenthesis around the self.button + 1 part of the assignment operation:

self.button = self.button + 1 % self.num_players

vs.

self.button = (self.button + 1) % self.num_players

I can create a pull request with tests etc. if you'd like, but simply entering a REPL session should give you the proof.
E.g. a game with 3 players, button is on player 3 (index 2) and should be moved to player 1 (index 0) when Dealer.reset() is called:

>>> 2 + 1 % 3   
3 

vs.

>>> (2 + 1) % 3  
0  

hand probabilities

To determine how likely it is a hand will we win we need to implement a Monte Carlo sampling method to evaluate unfinished hands

add human GUI

Create a pretty GUI (preferably using HTML to have assets for website) to display hands in human recognizable fashion

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.