menage coments
This commit is contained in:
parent
ed36703151
commit
83838ac87e
@ -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)
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
#dzielimy plansze na 4 cwiartki
|
||||
|
||||
to_collect_sorted = []
|
||||
q = [[],[],[],[]]
|
||||
for point in to_collect:
|
||||
|
Loading…
Reference in New Issue
Block a user