Skip to content
Snippets Groups Projects
Commit 03b27324 authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

two or more rails necessarz

parent a2600881
No related branches found
No related tags found
No related merge requests found
......@@ -676,7 +676,7 @@ def sparse_rail_generator(max_num_cities: int = 5, grid_mode: bool = False, max_
city_orientations.append(current_closest_direction)
# set the number of tracks within a city, at least 2 tracks per city
connections_per_direction = np.zeros(4, dtype=int)
nr_of_connection_points = np.random.randint(3, rails_in_city + 1)
nr_of_connection_points = np.random.randint(2, rails_in_city + 1)
for idx in connection_sides_idx:
connections_per_direction[idx] = nr_of_connection_points
connection_points_coordinates_inner: List[List[IntVector2D]] = [[] for i in range(4)]
......
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