From d9c2092551145651085b1e01666dd62550256c2a Mon Sep 17 00:00:00 2001 From: shaaqu Date: Tue, 9 Jun 2020 18:28:38 +0200 Subject: [PATCH] agent is getting path to the shelf --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index 79cf339..e7ddcd1 100644 --- a/main.py +++ b/main.py @@ -70,10 +70,16 @@ def run(): new_product = FinalProduct(supply_depot.item[0], supply_depot.item[1], supply_depot.item[2], supply_depot.item[3], prediction[0]) print(new_product) + + ''' + Wyznacza patha do polki na ktora ma polozyc produkt. + ''' # list [x, y] dest_shelf = new_product.shelf() dest_field = board[dest_shelf[0], dest_shelf[1]] path = functions.a_star(board[agent.y][agent.x], dest_field, board) + + '''''' agent.item = new_product