Skip to content

Commit

Permalink
Reduntant constant values removed
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Oct 19, 2024
1 parent bdfb981 commit d2e77e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/phevaluator/evaluator_omaha.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

COMMUNITY_CARD_COUNT = 5
HOLE_CARD_COUNT = 4
FLUSH_BASE_VALUE = 10000
NO_FLUSH_BASE_VALUE = 10000
MAX_RANK_VALUE = 10000
MIN_FLUSH_COUNT_BOARD = 3
MIN_FLUSH_COUNT_HOLE = 2
MAX_FLUSH_HOLE_HASH = 1365
Expand Down Expand Up @@ -71,7 +70,7 @@ def evaluate_omaha_cards(*cards: int | str | Card) -> int:
# TODO(@azriel1rf): `_evaluate_omaha_cards` is too complex. Consider refactoring.
# https://github.com/HenryRLee/PokerHandEvaluator/issues/92
def _evaluate_omaha_cards(community_cards: list[int], hole_cards: list[int]) -> int:
value_flush = FLUSH_BASE_VALUE
value_flush = MAX_RANK_VALUE
suit_count_board = _count_suits(community_cards)
suit_count_hole = _count_suits(hole_cards)

Expand Down

0 comments on commit d2e77e5

Please sign in to comment.