Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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