From d3f80c537e3ce29a310d213a47681d1f36d2bef0 Mon Sep 17 00:00:00 2001 From: Maciej Sobkowiak Date: Mon, 10 Jun 2019 09:04:10 +0200 Subject: [PATCH] print len fix --- UI/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/window.py b/UI/window.py index 23df7dd..9312d3e 100644 --- a/UI/window.py +++ b/UI/window.py @@ -51,7 +51,7 @@ class Window(): to_collect = [] for x in garbage: to_collect.extend(grid.get_trash_possition(x)) - print("\n",len(to_collect)," garbage to collect.\n") + print("\n",(len(to_collect)-1)," 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