Skip to content

Commit

Permalink
Add sound option to initial config
Browse files Browse the repository at this point in the history
  • Loading branch information
msosav committed Jan 7, 2025
1 parent cd4093c commit 185c6fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/gym.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, config: dict, debug=False):

assert self.rom_path is not None, "ROM path is required"

self.pyboy = PyBoy(self.rom_path)
self.pyboy = PyBoy(self.rom_path, sound=config["game_with_sound"])

self._fitness = 0
self._previous_fitness = 0
Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"rom_path": "roms/ZeldaLinksAwakening.gb",
"checkpoint_dir": "checkpoints/",
"log_dir": "logs/",
"game_with_sound": True,
}

callback = CheckpointAndLoggingCallback(
Expand Down

0 comments on commit 185c6fe

Please sign in to comment.