We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69cd0d0 commit c6df03dCopy full SHA for c6df03d
1 file changed
src/balatrollm/data_collection.py
@@ -255,7 +255,9 @@ def calculate_stats(self) -> RunStats:
255
stats.run_won = final_state["game"].get(
256
"won", False
257
) # TODO: check if "won" is the right key
258
- stats.completed = stats.run_won or final_state["state"] == "GAME_OVER"
+ stats.completed = (
259
+ stats.run_won or final_state["state"] == 4
260
+ ) # 4 is GAME_OVER game state
261
stats.final_round = final_state["game"]["round"]
262
stats.ante_reached = (
263
max(1, (stats.final_round // 3) + 1) if stats.final_round > 0 else 1
0 commit comments