We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d91732 commit f349344Copy full SHA for f349344
nes_py/nes_env.py
@@ -243,14 +243,21 @@ def seed(self, seed=None):
243
# return the list of seeds used by RNG(s) in the environment
244
return [seed]
245
246
- def reset(self):
+ def reset(self, seed=None, options=None, return_info=None):
247
"""
248
Reset the state of the environment and returns an initial observation.
249
250
+ Args:
251
+ seed (int): an optional random number seed for the next episode
252
+ options (any): unused
253
+ return_info (any): unused
254
+
255
Returns:
256
state (np.ndarray): next frame as a result of the given action
257
258
259
+ # Set the seed.
260
+ self.seed(seed)
261
# call the before reset callback
262
self._will_reset()
263
# reset the emulator
0 commit comments