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

check fixed

parent a62da53e
No related branches found
No related tags found
No related merge requests found
...@@ -666,7 +666,7 @@ def sparse_rail_generator(num_cities=5, num_intersections=4, num_trainstations=2 ...@@ -666,7 +666,7 @@ def sparse_rail_generator(num_cities=5, num_intersections=4, num_trainstations=2
0, 0,
width - 1) width - 1)
tries = 0 tries = 0
while (station_x, station_y) in train_stations \ while (station_x, station_y) in train_stations[trainstation_node] \
or (station_x, station_y) == node_positions[trainstation_node] \ or (station_x, station_y) == node_positions[trainstation_node] \
or rail_array[(station_x, station_y)] != 0: # noqa: E125 or rail_array[(station_x, station_y)] != 0: # noqa: E125
......
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