texasholdem v0.4.0
This release represents the most stable version of the package to date with a comprehensive test suite finally implemented.
Changelog
New Features
- When settling, when there is a difference in parity between the pot and the number of winners, posts the leftovers to the next pot (e.g. if 2 players split a 5 chip pot, they both get 2 chips and the leftover chip is then posted to the next hand's pot).
- PGN files now support both in-line and full-line comments.
- History module now throws errors when a malformed PGN file tries to be imported, so the error appears right when
TexasHoldEm.import_history
is called.
Fixes
- Fixes a minor bug where a player was allowed to reraise less than a big blind's worth.
Test Suites
- Adds many test suites for all the modules, notable changes include the following.
Evaluator module
- Fuzz tests the
evaluate
function of the evaluator module against random 5 card vs 5 card hands and then 2 card vs 2 card hands while sharing a board of length 3, 4, and 5.
Game module
- Includes e2e testing of complete games specified in annotated history files in
/tests/pgns/
. - Also includes a few more tests, playing a tournament until there's only one winner.