diff --git a/__pycache__/board.cpython-37.pyc b/__pycache__/board.cpython-37.pyc index 9b06210..7d6e2b2 100644 Binary files a/__pycache__/board.cpython-37.pyc and b/__pycache__/board.cpython-37.pyc differ diff --git a/__pycache__/coder.cpython-37.pyc b/__pycache__/coder.cpython-37.pyc index 7d4ed71..43dd526 100644 Binary files a/__pycache__/coder.cpython-37.pyc and b/__pycache__/coder.cpython-37.pyc differ diff --git a/board.py b/board.py index 363a0ae..62b07f2 100644 --- a/board.py +++ b/board.py @@ -3,13 +3,16 @@ from settings import Settings from field import Field settings = Settings() - +#(250, 650), (250, 750) def create_board(screen): board = [] - shelfs = [(250, 150), (250, 250), (450, 150), (450, 250), (650, 150), (650, 250), (850, 150), (850, 250), - (250, 450), (350, 450), (750, 450), (850, 450), - (250, 650), (250, 750), (450, 650), (450, 750), (650, 650), (650, 750), (850, 650), (850, 750)] + shelfs = [ + (50, 50), (150, 50), (450, 50), (550, 50), (850, 50), (950, 50), + (250, 250), (350, 250), (650, 250), (750, 250), + (50, 450), (150, 450), (450, 450), (550, 450), (850, 450), (950, 450), + (250, 650), (350, 650), (650, 650), (750, 650) + ] for y in range(settings.y_fields): row = [] diff --git a/coder.py b/coder.py index 733e5a7..4886927 100644 --- a/coder.py +++ b/coder.py @@ -64,7 +64,7 @@ def code_shape(shape): def create_image(product): string = code_color(product.color) + code_shape(product.shape) + code_mass(product.mass) + \ - code_shape(product.shape) + code_price(product.price) + code_size(product.size) + code_price(product.price) print(string) img = Image.new('RGB', (560, 112), color='white') d = ImageDraw.Draw(img) diff --git a/img/codes/Góralki.png b/img/codes/Góralki.png new file mode 100644 index 0000000..53a6511 Binary files /dev/null and b/img/codes/Góralki.png differ diff --git a/img/codes/Kinder-bueno.png b/img/codes/Kinder-bueno.png new file mode 100644 index 0000000..1ba42bf Binary files /dev/null and b/img/codes/Kinder-bueno.png differ diff --git a/img/codes/Korsarz Draże.png b/img/codes/Korsarz Draże.png new file mode 100644 index 0000000..61216d2 Binary files /dev/null and b/img/codes/Korsarz Draże.png differ diff --git a/main.py b/main.py index 806aeda..7667985 100644 --- a/main.py +++ b/main.py @@ -20,7 +20,7 @@ def run(): settings = Settings() screen = pygame.display.set_mode((settings.screen_width, settings.screen_height)) pygame.display.set_caption("Inteligentny wózek widłowy") - agent = Agent(screen, 550, 450, "Down") + agent = Agent(screen, 950, 950, "Left") board = create_board(screen) my_tree = decision_tree.build_tree(data.learning_data) products_from_supply = []