Skip to content

Commit

Permalink
note that largest_straight_and_outcome now has option to prioritize…
Browse files Browse the repository at this point in the history
… low outcomes
  • Loading branch information
HighDiceRoller committed Jan 1, 2025
1 parent 92fe1c2 commit 802c3db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/icepool/evaluator/poker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/icepool/multiset_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 802c3db

Please sign in to comment.