Skip to content

Commit

Permalink
v1.5.0
Browse files Browse the repository at this point in the history
* Providing only a `drop` argument to `lowest()` or `highest()` will now keep all other elements rather than just the first non-dropped element.
* `depth` argument to `Die.reroll()` is now mandatory.
* `tuple` outcomes are now auto-`tupleize`d again during `Die` construction.
* Add `Die.stochastic_round()` method.
* Add `Die.reroll_to_pool()` method.
* Add `Die.keep()` method. This works as `MultisetGenerator.keep()` with an implicit sum.
* Add `percent` option to `Population.probability`.
* Add new `again_count` mode for handling `Again`, which limits the total number of dice.
* Improved ability to `keep` from both ends for certain types of multiset expressions.
* Rename `func` parameters to `function`.
* `MultisetExpression.order()` is now public.
* Improved sorting for `Symbols`; now compares counts in alphabetical order.
* Experimental `sort_match`, `maximum_match_highest`, `maximum_match_lowest` expressions. `sort_match` replaces the `compair` evaluations.
* Experimental `all_straights_reduce_counts` and `argsort` multiset evaluations.
* Breaking change: `nearest`, `quantity`, `quantities`, `probability`, `probabilities`, `keep_counts` no longer have separate variants for each comparison; instead, they now take a comparison argument. `quantities` and  `probabilities` now accept a comparison argument but no longer accept a list of outcomes.
  • Loading branch information
HighDiceRoller committed Aug 24, 2024
1 parent f48c5c0 commit 01971b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Rename `func` parameters to `function`.
* `MultisetExpression.order()` is now public.
* Improved sorting for `Symbols`; now compares counts in alphabetical order.
* Experimental `sort_match`, `maximum_match` expressions. `sort_match` replaces the `compair` evaluations.
* Experimental `sort_match`, `maximum_match_highest`, `maximum_match_lowest` expressions. `sort_match` replaces the `compair` evaluations.
* Experimental `all_straights_reduce_counts` and `argsort` multiset evaluations.
* Breaking change: `nearest`, `quantity`, `quantities`, `probability`, `probabilities`, `keep_counts` no longer have separate variants for each comparison; instead, they now take a comparison argument. `quantities` and `probabilities` now accept a comparison argument but no longer accept a list of outcomes.

Expand Down
2 changes: 1 addition & 1 deletion src/icepool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

__docformat__ = 'google'

__version__ = '1.5.0a5'
__version__ = '1.5.0'

from typing import Final

Expand Down

0 comments on commit 01971b9

Please sign in to comment.