Releases: SirRender00/texasholdem
Releases · SirRender00/texasholdem
texasholdem v0.4.2
Changelog
Other
- Allows for a broader range of python versions: >3.7, <3.11
- (Fixes a versioning issue, pylint does not support python 3.10. Consumers can use python 3.10 but developers cannot)
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.
texasholdem v0.3.6
Changelog
Fixes
TexasHoldEm class
- Fixes a bug where the split pot functionality would miss players that had no stake in the pot that was being split off (but could continue to play in the new pot).
texasholdem v0.3.5
Changelog
Fixes
- Fixes a split_pot game bug where the overflow from a split_pot was added instead of subtracted
texasholdem v0.3.4
Changelog
Fixes
- Fixes a history importing / exporting bug where it could not record if two or more players split a pot
- Fixes a history naming bug where the
(n)
intexas(n).pgn
would not increment correctly
Other Changes
- Split off the exporting into the
history
module, history methods inTexasHoldEm
just call the history module ones.
texasholdem v0.3.3
Changelog
Fixes
- Fixes a bug where the last state of the game would not return in the
import_history()
method.
texasholdem v0.3.2
Changelog
Fixes
- Fixes another minor history bug where each section of the history was required before importing.
texasholdem v0.3.1
Changelog
Fixes
Fixes a minor History
module bug where the history module could not import pgn files with multi-line betting histories.
texasholdem v0.3.0
Changelog
Refactored the History
module:
- TexasHoldEm now has support for two history methods:
- Class method
export_history(path)
writes the current history to a human-readable file in a minimalist format - Static method
import_history(path)
reads the given history file and returns an iterator over the game as it happened
- Class method
texasholdem v0.2.0
Changelog
Minor fixes
- Added README.md to package
- Reformatted all files to comply with pylint