Skip to content

Releases: SirRender00/texasholdem

texasholdem v0.4.2

19 Feb 22:57
Compare
Choose a tag to compare

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

08 Feb 03:31
e3ad827
Compare
Choose a tag to compare

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

06 Feb 23:33
e08ca3c
Compare
Choose a tag to compare

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

03 Feb 21:27
c6b0ce5
Compare
Choose a tag to compare

Changelog

Fixes

  • Fixes a split_pot game bug where the overflow from a split_pot was added instead of subtracted

texasholdem v0.3.4

03 Feb 21:00
e9a4423
Compare
Choose a tag to compare

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) in texas(n).pgn would not increment correctly

Other Changes

  • Split off the exporting into the history module, history methods in TexasHoldEm just call the history module ones.

texasholdem v0.3.3

02 Feb 07:29
ab1c18e
Compare
Choose a tag to compare

Changelog

Fixes

  • Fixes a bug where the last state of the game would not return in the import_history() method.

texasholdem v0.3.2

02 Feb 07:09
254d990
Compare
Choose a tag to compare

Changelog

Fixes

  • Fixes another minor history bug where each section of the history was required before importing.

texasholdem v0.3.1

02 Feb 06:51
a74d65d
Compare
Choose a tag to compare

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

28 Jan 05:33
efc9d87
Compare
Choose a tag to compare

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

texasholdem v0.2.0

06 Oct 20:45
Compare
Choose a tag to compare

Changelog

Minor fixes

  • Added README.md to package
  • Reformatted all files to comply with pylint