diff --git a/__pycache__/data.cpython-37.pyc b/__pycache__/data.cpython-37.pyc index 77ec7fd..196eabc 100644 Binary files a/__pycache__/data.cpython-37.pyc and b/__pycache__/data.cpython-37.pyc differ diff --git a/__pycache__/field.cpython-37.pyc b/__pycache__/field.cpython-37.pyc index 2a25f24..a6aa6db 100644 Binary files a/__pycache__/field.cpython-37.pyc and b/__pycache__/field.cpython-37.pyc differ diff --git a/data.py b/data.py index 4c3a444..b8e059f 100644 --- a/data.py +++ b/data.py @@ -40,7 +40,7 @@ learning_data = [ ['gold', 'rectangle', 40, 'medium', 'Twix'], ['gold', 'rectangle', 50, 'medium', 'Prince-polo'], ['brown', 'rectangle', 55, 'medium', 'Snickers'], - ['brown', 'rectangle', 45, 'medium', 'Lion'], + ['brown', 'rectangle', 45, 'medium', 'Lion'], ['white', 'rectangle', 40, 'medium', 'Kinder-bueno'], ['red', 'rectangle', 50, 'medium', 'Kit-kat'], ['blue', 'rectangle', 115, 'big', 'Wedel'], diff --git a/field.py b/field.py index d90ffa6..89f246a 100644 --- a/field.py +++ b/field.py @@ -33,7 +33,6 @@ class Field: self.rect.center = (center_x, center_y) - # Metoda do wyƛwietlania pola na ekranie def blitme(self): self.screen.blit(self.image, self.rect) @@ -49,5 +48,5 @@ class Field: self.neighbors.append(board[self.y + 1][self.x]) def addShelf(self): - shelf = Shelf(len(self.shelves)+1) - self.shelves.append(shelf) \ No newline at end of file + shelf = Shelf(len(self.shelves) + 1) + self.shelves.append(shelf) diff --git a/main.py b/main.py index f71fa65..0f4925b 100644 --- a/main.py +++ b/main.py @@ -46,7 +46,6 @@ def run(): elif event.key == pygame.K_SPACE: board[9][0].item = choice(data.learning_data) print("Wybrano: " + board[9][0].item[-1]) - board[9][0].item[-1] = 'Something' field = board[9][0] if not field.is_shelf: path = functions.a_star(board[agent.y][agent.x], field, board)