Skip to content

Commit

Permalink
Add set_value function to retro_env.py
Browse files Browse the repository at this point in the history
Used to set the values of the variables listed in data.json
  • Loading branch information
MatPoliquin authored Dec 4, 2023
1 parent cf52399 commit 4f457b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions retro/retro_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ def get_action_meaning(self, act):
return actions[0]
return actions

def set_value(self, name, val):
self.data.set_value(name, val)

def get_ram(self):
blocks = []
for offset in sorted(self.data.memory.blocks):
Expand Down

0 comments on commit 4f457b9

Please sign in to comment.