From d7deb4900c26de213ce24660f09994d0782d0366 Mon Sep 17 00:00:00 2001 From: Piotr Rychlicki Date: Tue, 9 Jun 2020 19:58:21 +0000 Subject: [PATCH] Zaktualizuj 'collective.py' --- collective.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/collective.py b/collective.py index 94fd149..ab4fd44 100644 --- a/collective.py +++ b/collective.py @@ -31,7 +31,9 @@ class main(): self.traktor.set_mode(action) # ustawiamy tryb traktorowi field = self.neuro_check_field() # sprawdzamy pole coords = self.kamila.main_collective(field) # zwracam koordynaty pol zgodych z wybranym trybem - self.piotrek.main(coords) + first_coord = coords[0] + coords.append(first_coord) + self.piotrek.main(coords) # tutaj Piotrek tworzy optymalna sciezke # traktor wykonuje prace na polu pass