Skip to content
Snippets Groups Projects
Commit b216dc94 authored by Egli Adrian (IT-SCI-API-PFI)'s avatar Egli Adrian (IT-SCI-API-PFI)
Browse files

bug fixed

parent ad576a72
No related branches found
No related tags found
No related merge requests found
......@@ -779,7 +779,7 @@ def realistic_rail_generator(nr_start_goal=1, seed=0,max_add_dead_end = 7):
# add dead-end
if True:
n = int(np.random.choice(np.arange(max_add_dead_end), 1)[0])
n = max_add_dead_end#int(np.random.choice(np.arange(max_add_dead_end-2)+1, 1)[0])
for pos_y in np.random.choice(np.arange(width - 7) + 3, n):
pos_x = off_set
pos_x1 = max(0, min(pos_x + 1, height - 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