fixes typo (#732)

* fixes typo

* adds apostrophe
This commit is contained in:
Prabhat Nagarajan
2018-11-27 09:19:09 +09:00
committed by pzhokhov
parent 7139a66d33
commit 7dc6bc7c70

View File

@@ -72,8 +72,8 @@ class EpisodicLifeEnv(gym.Wrapper):
# then update lives to handle bonus lives
lives = self.env.unwrapped.ale.lives()
if lives < self.lives and lives > 0:
# for Qbert sometimes we stay in lives == 0 condtion for a few frames
# so its important to keep lives > 0, so that we only reset once
# for Qbert sometimes we stay in lives == 0 condition for a few frames
# so it's important to keep lives > 0, so that we only reset once
# the environment advertises done.
done = True
self.lives = lives