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