Skip to content

Releases: uoftcprg/pokerkit

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