From 802c3dbddebc060ef009d535b0e8ccc05ef868ab Mon Sep 17 00:00:00 2001 From: Albert Julius Liu Date: Wed, 1 Jan 2025 14:55:36 -0800 Subject: [PATCH] note that `largest_straight_and_outcome` now has option to prioritize low outcomes --- src/icepool/evaluator/poker.py | 2 +- src/icepool/multiset_expression.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/icepool/evaluator/poker.py b/src/icepool/evaluator/poker.py index b1d36710..30d9d68d 100644 --- a/src/icepool/evaluator/poker.py +++ b/src/icepool/evaluator/poker.py @@ -160,7 +160,7 @@ def final_outcome(self, final_state) -> int: class LargestStraightAndOutcomeEvaluator(MultisetEvaluator[int, tuple[int, int]]): - """The size of the largest straight among the elements and the lowest or highest outcome in that straight. + """The size of the largest straight among the elements and the highest (optionally, lowest) outcome in that straight. Straight size is prioritized first, then the outcome. diff --git a/src/icepool/multiset_expression.py b/src/icepool/multiset_expression.py index 5d3ea876..f18e613f 100644 --- a/src/icepool/multiset_expression.py +++ b/src/icepool/multiset_expression.py @@ -1122,7 +1122,7 @@ def largest_straight_and_outcome( priority: Literal['low', 'high'] = 'high', / ) -> 'icepool.Die[tuple[int, int]] | icepool.MultisetEvaluator[int, tuple[int, int]]': - """Evaluation: The size of the largest straight among the elements and the lowest or highest outcome in that straight. + """Evaluation: The size of the largest straight among the elements and the highest (optionally, lowest) outcome in that straight. Straight size is prioritized first, then the outcome.