Skip to content

Instantly share code, notes, and snippets.

@tristansokol
Created April 8, 2018 15:38
Show Gist options
  • Save tristansokol/cf767409e9a36f83803f672cd864b270 to your computer and use it in GitHub Desktop.
Save tristansokol/cf767409e9a36f83803f672cd864b270 to your computer and use it in GitHub Desktop.
while True:
# ...
rew, new_ep = move(env, 100)
if not new_ep and rew <= 0:
print('backtracking due to negative reward: %f' % rew)
_, new_ep = move(env, 70, left=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment