fix gen alg
This commit is contained in:
parent
084e96ba7d
commit
4b828f878b
1
board.py
1
board.py
@ -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)
|
||||
|
@ -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]]
|
||||
|
Loading…
Reference in New Issue
Block a user