Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Fix raise bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-bae-raw authored Mar 30, 2024
1 parent a8c3026 commit 49dd430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def _validate_action(
continue_cost = round_state.pips[1 - active] - round_state.pips[active]
if RaiseAction in legal_actions and min_raise <= amount <= max_raise:
return action
elif CallAction in legal_actions and amount > continue_cost:
elif CallAction in legal_actions and amount >= continue_cost:
self.log.append(f"{player_name} attempted illegal RaiseAction with amount {amount}")
return CallAction()
else:
Expand Down

0 comments on commit 49dd430

Please sign in to comment.