Permalink
Browse files

use int instead of math.floor; fixes #32

  • Loading branch information...
spro committed Jun 8, 2017
1 parent 5ad67e5 commit 60a930f186f5560f3784e51266f8f315bac2ea7c
Showing with 1 addition and 1 deletion.
  1. +1 −1 reinforce-gridworld/reinforce-gridworld.py
@@ -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

0 comments on commit 60a930f

Please sign in to comment.