Releases: uoftcprg/pokerkit
Releases · uoftcprg/pokerkit
v0.3.0
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
Changed
- Make
pokerkit.state.Operation
available aspokerkit.Operation
by
importing it inpokerkit.__init__
.
v0.2.0
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
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