elliottneilclark / rs-poker

rs-poker is a rust library that includes all of the poker evaluation tools that you need from hand ranking and starting card enumeration to a full agent arena for self learning.
Apache License 2.0
89 stars 26 forks source link

Introduce an ante round before preflop #103

Closed gr-g closed 9 months ago

gr-g commented 9 months ago

I experimented a bit with changes to GameState to support an ante in addition to the small blind and big blind. The approach in this pull request is to introduce a separate "Ante" round before "Starting" and "Preflop", which is admittedly quite intrusive and impacts a lot of code. Anyway, I am sharing it here in case it is of interest.

A separate commit adjusts the selection of the player first to act after each round (see #102).

elliottneilclark commented 9 months ago

Looks good though it needs a format:

 cargo clippy --fix --allow-staged --allow-dirty --all
 cargo fmt --all
gr-g commented 9 months ago

Added commit to fix clippy lints and fmt, thanks for the feedback.

elliottneilclark commented 9 months ago

@gr-g Thank you for the contributions. I'll spin a new release ASAP.