print len fix

This commit is contained in:
Maciej Sobkowiak 2019-06-10 09:04:10 +02:00
parent bb32adb6ad
commit d3f80c537e

View File

@ -51,7 +51,7 @@ class Window():
to_collect = [] to_collect = []
for x in garbage: for x in garbage:
to_collect.extend(grid.get_trash_possition(x)) 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 #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