Skip to content

Commit

Permalink
implement reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Kautenja committed Jul 22, 2018
1 parent 1904da1 commit 8efb860
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nes_py/wrappers/binary_to_discrete_space_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ def step(self, action):
# take the step and record the output
return self.env.step(self._action_map[action])

def reset(self):
"""Reset the environment and return the initial observation."""
return self.env.reset()

# explicitly define the outward facing API of this module
__all__ = [BinarySpaceToDiscreteSpaceEnv.__name__]

0 comments on commit 8efb860

Please sign in to comment.