Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
use int instead of math.floor; fixes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
spro committed Jun 8, 2017
1 parent 5ad67e5 commit 60a930f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reinforce-gridworld/reinforce-gridworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def reset(self):
"""Start a new episode by resetting grid and agent"""
self.grid.reset()
self.agent.reset()
c = math.floor(self.grid.grid_size / 2)
c = int(self.grid.grid_size / 2)
self.agent.pos = (c, c)

self.t = 0
Expand Down

0 comments on commit 60a930f

Please sign in to comment.