Skip to content

Commit

Permalink
update mario
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanmingqi committed May 25, 2024
1 parent 3615d8b commit 0940ab4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rllte/env/mario/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def step(self, action):

def reset(self, **kwargs):
if self.was_real_done:
obs = self.env.reset(**kwargs)
obs, infos = self.env.reset(**kwargs)
else:
# no-op step to advance from terminal/lost life state
obs, _, _, _, _ = self.env.step(0)
obs, _, _, _, infos = self.env.step(0)
self.lives = self.env.unwrapped.env._life
return obs
return obs, infos

class SkipFrame(gym.Wrapper):
def __init__(self, env, skip):
Expand Down

0 comments on commit 0940ab4

Please sign in to comment.