Skip to content

Commit

Permalink
Bug in frozen lake implementation
Browse files Browse the repository at this point in the history
Because of bug terminal states do not act as terminal
  • Loading branch information
last-g authored and tlbtlbtlb committed Dec 25, 2016
1 parent d20a5d0 commit 328ebc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gym/envs/toy_text/frozen_lake.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def inc(row, col, a):
s = to_s(row, col)
for a in range(4):
li = P[s][a]
letter = str(desc[row, col])
if letter in 'GH':
letter = desc[row, col]
if letter in b'GH':
li.append((1.0, s, 0, True))
else:
if is_slippery:
Expand Down

0 comments on commit 328ebc5

Please sign in to comment.