Skip to content

Commit

Permalink
if done set pot to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
fschlatt committed Jan 10, 2021
1 parent 5907506 commit bc9bac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clubs/poker/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ def step(self, bet: float) -> Tuple[Dict, np.ndarray, np.ndarray]:
observation, payouts, done = self._output()
if all(done):
self.action = -1
self.pot = 0
observation["action"] = -1
observation["pot"] = 0
return observation, payouts, done

def _render_config(self):
Expand Down

0 comments on commit bc9bac5

Please sign in to comment.