markusdumke / reinforcelearn

R Package for Reinforcement Learning
https://markusdumke.github.io/reinforcelearn/
Other
33 stars 6 forks source link

fix bug in gridworld.R #2

Closed markusdumke closed 7 years ago

markusdumke commented 7 years ago

gridworld(c(5, 2), terminal.states = c(2, 10)) gives error: Error in [<-(tmp, state, new.state, action, value = 1) : subscript out of bounds

Always fails if shape[1] > shape[2]