Skip to content

Commit 4a65053

Browse files
committed
rollback
1 parent 0ca988e commit 4a65053

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/cogames/src/cogames/play.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def play(
4242
save_replay: Optional directory path to save replay. Directory will be created if it doesn't exist.
4343
Replay will be saved with a unique UUID-based filename.
4444
"""
45+
logger.debug("Starting play session", extra={"game_name": game_name})
4546

4647
policy_env_info = PolicyEnvInterface.from_mg_cfg(env_cfg)
4748
policy = initialize_or_load_policy(policy_env_info, policy_spec, mg_cfg=env_cfg)

packages/mettagrid/python/src/mettagrid/simulator/rollout.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ def step(self) -> None:
6969

7070
def run_until_done(self) -> None:
7171
"""Run the rollout until completion or early exit."""
72-
step_count = 0
7372
while not self.is_done():
74-
step_count += 1
7573
self.step()
7674

7775
def is_done(self) -> bool:

0 commit comments

Comments
 (0)