Skip to content

Commit

Permalink
Use correct function.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jan 16, 2024
1 parent 2323949 commit 3380986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/DiggerGym.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ def step(self, action):
reward = (newscore:=self.digger.getscore(0)) - self.lastscore
assert reward >= 0
self.lastscore = newscore
return self.screenshot(), reward, done, False, {}
return self.digger.getscreenrgb(), reward, done, False, {}

def reset(self):
self.digger.initgame()
self.digger.startlevel()
self.lastscore = self.digger.getscore(0)
return self.screenshot(), {}
return self.digger.getscreenrgb(), {}

def screenshot(self):
s = self.digger.screenshot()
Expand Down

0 comments on commit 3380986

Please sign in to comment.