From abf5829c3426e92ea4c08c6d8cc56a75dee54228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20=C5=81ukasik?= Date: Tue, 19 May 2020 22:21:13 +0200 Subject: [PATCH] zmiany --- __pycache__/data.cpython-37.pyc | Bin 2311 -> 2311 bytes __pycache__/field.cpython-37.pyc | Bin 1606 -> 1606 bytes data.py | 2 +- field.py | 5 ++--- main.py | 1 - 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/__pycache__/data.cpython-37.pyc b/__pycache__/data.cpython-37.pyc index 77ec7fdb49dbcfe2511f82a7ea2417da6b3f140e..196eabc65826b54364b04b6b53e72da128d0325d 100644 GIT binary patch delta 22 ccmZn{Y8T>l;^pOH0D_JahvRl^l;^pOH0D|`i565la$oq=}06ysk?f?J) diff --git a/__pycache__/field.cpython-37.pyc b/__pycache__/field.cpython-37.pyc index 2a25f2452f0d68a928b0434daf9e793fe34b7a0b..a6aa6db7e4a8e075da7cb20f8641036987226605 100644 GIT binary patch delta 47 zcmX@cbBu@AiIE)e8V7 Cat$~D 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)