Releases: uoftcprg/pokerkit
Releases · uoftcprg/pokerkit
v0.1.1
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
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 acceptspokerkit.utilities.ValuesLike
instances as arguments for various parameters.pokerkit.state.State
requiresplayer_count
argument to be passed
during initialization.- Various operation classes such as
pokerkit.state.State.AntePosting
moved
topokerkit.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
Added
- Introduce
pokerkit.utilities.CardsLike
andpokerkit.utilities.ValuesLike
type aliases to simplify type annotations of various methods.
v0.0.1
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
andpokerkit.games.Game._clean_values
topokerkit.utilities
.
v0.0.0
Initial release