fix gen alg

This commit is contained in:
s481904 2024-06-10 15:47:10 +02:00
parent 4b828f878b
commit 8204825a97
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ class Board:
self.load_costs()
def load_images(self):
self.grass = pygame.image.load("board/grass.png")
self.dirt = pygame.image.load("board/dirt.png")

View File

@ -13,6 +13,7 @@ weed_count = len(weed_positions)
def manhattan(a, b):
return abs(a[0] - b[0]) + abs(a[1] - b[1])
def find_routes(routes_num):
population_set = [] # zapisujemy trasy - losowe ułóżenia
for i in range(routes_num):