Skip to content
Snippets Groups Projects
Commit 49bd3b56 authored by Erik Nygren's avatar Erik Nygren
Browse files

updated curve detection. There might be a bug in nbit calculation for levels...

updated curve detection. There might be a bug in nbit calculation for levels generated using the editor notebook
parent 1ffa1266
No related branches found
No related tags found
No related merge requests found
...@@ -1024,7 +1024,6 @@ class RailEnv(Environment): ...@@ -1024,7 +1024,6 @@ class RailEnv(Environment):
while tmp > 0: while tmp > 0:
nbits += (tmp & 1) nbits += (tmp & 1)
tmp = tmp >> 1 tmp = tmp >> 1
print(nbits)
movement = direction movement = direction
if action == 1: if action == 1:
movement = direction - 1 movement = direction - 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment