Skip to content

Releases: uoftcprg/pokerkit

v0.3.0

07 Oct 11:57
Compare
Choose a tag to compare

Changed

  • Call unittest.main in unit test files when executed as __main__.
  • Move the automations parameter to be the first parameter of
    pokerkit.state.State.

v0.2.1

29 Sep 01:39
Compare
Choose a tag to compare

Changed

  • Make pokerkit.state.Operation available as pokerkit.Operation by
    importing it in pokerkit.__init__.

v0.2.0

10 Sep 10:01
Compare
Choose a tag to compare

Changed

  • Limit maximum number of completions, bets, or raises to 4 in the
    pre-configured Fixed-limit deuce-to-seven triple draw and Fixed-limit badugi
    variants.
  • Flip antes just like blinds during heads-up play (in case of big blind antes).
  • Also reshuffle all discarded cards (including from current draw round) along
    with mucked and burn cards when the deck runs out. Previously, discarded cards
    from the same draw round was excluded.
  • Rename pokerkit.state.State.verify_card_availability_making to
    pokerkit.state.State.verify_cards_availability_making.

Added

  • Add more unittests and doctests to achieve 99% code coverage.

v0.1.1

29 Aug 23:54
Compare
Choose a tag to compare

Bugfixes

  • Fix AssertionError being raised in certain scenarios after discards are
    made when the state was configured to automatically deal hole cards.

Changed

  • When the dealer deals hole cards after standing pat or discarding, an explicit
    ValueError is raised unless every player has stood pat or discarded.

v0.1.0

27 Aug 19:40
Compare
Choose a tag to compare

Added

  • pokerkit.state.Operation abstract base class for all operation classes.
  • pokerkit.utilities.shuffled helper function.
  • pokerkit.state.State.discarded_cards to keep track of discarded cards.
  • pokerkit.state.State.street_count property.
  • pokerkit.state.State.street_indices property.

Changed

  • pokerkit.state.State now also accepts pokerkit.utilities.ValuesLike
    instances as arguments for various parameters.
  • pokerkit.state.State requires player_count argument to be passed
    during initialization.
  • Various operation classes such as pokerkit.state.State.AntePosting moved
    to pokerkit.state and is no longer a nested class of
    pokerkit.state.State.
  • Renamed pokerkit.lookups.RegularLowLookup to
    pokerkit.lookups.RegularLookup for enhanced consistency.
  • Renamed pokerkit.state.State.burned_cards to
    pokerkit.state.State.burn_cards.
  • Renamed pokerkit.state.State.verify_card_availabilities to
    pokerkit.state.State.verify_card_availability_making.
  • Changed the property pokerkit.state.State.available_cards to method
    pokerkit.state.State.get_available_cards.
  • Cards can be dealt from the mucked cards or burn cards if the deck is empty.
  • Warning is printed if cards are dealt from burn cards without any good reason.

v0.0.2

17 Aug 05:11
Compare
Choose a tag to compare

Added

  • Introduce pokerkit.utilities.CardsLike and pokerkit.utilities.ValuesLike type aliases to simplify type annotations of various methods.

v0.0.1

07 Aug 15:51
Compare
Choose a tag to compare

Changed

  • Modify the methods that only accepted an iterable of Card so they can accept any card-like object.
  • Make the protected attributes in the Hand type and its descendants public.
  • Move pokerkit.state.State._clean_cards and pokerkit.games.Game._clean_values to pokerkit.utilities.

v0.0.0

02 Aug 20:47
Compare
Choose a tag to compare

Initial release