Skip to content

Commit

Permalink
make skip public
Browse files Browse the repository at this point in the history
  • Loading branch information
Kautenja committed Jan 6, 2019
1 parent 73daa27 commit c198ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nes_py/wrappers/frame_skip_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, env, skip=4):
"""
super(FrameSkipEnv, self).__init__(env)
self._skip = skip
self.skip = skip

def step(self, action):
"""
Expand All @@ -40,7 +40,7 @@ def step(self, action):
# set the done flag to false
done = False
# iterate over the number of frames to skip
for _ in range(self._skip):
for _ in range(self.skip):
# get the next state using the given action
state, reward, done, info = self.env.step(action)
# accumulate the total reward
Expand Down

0 comments on commit c198ee9

Please sign in to comment.