Skip to content

Commit

Permalink
Set go_to_kickoff and is_over in RandomScoreboardMutator
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolv-Arild committed Jan 20, 2025
1 parent a2722ed commit 56c177b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ def apply(self, state: GameState, shared_info: Dict[str, Any]) -> None:
if scoreboard is None:
scoreboard = ScoreboardInfo(300, 0, 0, 0, False, False)
shared_info["scoreboard"] = scoreboard
else:
# Indicate that we've set the scoreboard to an initial state
scoreboard.go_to_kickoff = False
scoreboard.is_over = False

num_cars = len(state.cars)
ael = AVERAGE_EPISODE_LENGTH[num_cars // 2 - 1] # Average episode length for this gamemode
Expand Down

0 comments on commit 56c177b

Please sign in to comment.