From 83838ac87e71e37b9a3554ab31a8f02b7ac3928f Mon Sep 17 00:00:00 2001 From: Maciej Sobkowiak Date: Sun, 9 Jun 2019 23:23:00 +0200 Subject: [PATCH] menage coments --- UI/grid.py | 4 +--- UI/window.py | 8 +++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/UI/grid.py b/UI/grid.py index b79039a..7dfdb47 100644 --- a/UI/grid.py +++ b/UI/grid.py @@ -48,8 +48,7 @@ class Grid: for index, x in enumerate(day): if index != 0 and index != 1: garbage.append(x) - print(garbage) - print("Today is:", day[1], ", garbage to collect: ",end = '') + print("\n Today is:", day[1], ", garbage to collect: ",end = '') for x in garbage: print(x[2],", ",end='') field_types.append(x[0]) @@ -153,7 +152,6 @@ class Node: self.field_type = field_type self.house = House() self.house.generate_trash() - print(self.house.trash,self.house.trash_file) diff --git a/UI/window.py b/UI/window.py index a831700..d376423 100644 --- a/UI/window.py +++ b/UI/window.py @@ -51,14 +51,12 @@ class Window(): to_collect = [] for x in garbage: to_collect.extend(grid.get_trash_possition(x)) - print("\n",len(to_collect)," garbage to collect.") - print(to_collect) + print("\n",len(to_collect)," garbage to collect.\n") #sort list of tuples to get minimum distance betwen all of them - - #fajnie jakby sie udalo to zrobic wydajniej ale narazie niech bedzie tak - + #fajnie jakby sie udalo to zrobic wydajniej ale narazie niech bedzie tak #dzielimy plansze na 4 cwiartki + to_collect_sorted = [] q = [[],[],[],[]] for point in to_collect: