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
Pipeline #466 failed with stage
in 1 minute and 49 seconds
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment