fix gen alg

This commit is contained in:
s481904 2024-06-10 15:41:01 +02:00
parent 084e96ba7d
commit 4b828f878b
2 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class Board:
def draw_cubes(self, win):
for row in range(rows):
for col in range(cols):
cube_rect = pygame.Rect(row * size, col * size, size, size)

View File

@ -22,6 +22,7 @@ def find_routes(routes_num):
return np.array(population_set) #zwracamy 20 roznych losowych tras
def sum_up_for_route(route_indices):
sum = 0
for i in range(len(route_indices) - 1):
current_weed = weed_positions[route_indices[i]]