2024-03-10 21:24:30 +01:00
|
|
|
# Tutaj wrzucam jakieś funkcje różne, co by nie zaśmiecać tym maina jak nie trzeba
|
2024-03-25 11:21:23 +01:00
|
|
|
from classes.Household import *
|
2024-03-10 21:19:35 +01:00
|
|
|
|
2024-03-25 11:21:23 +01:00
|
|
|
colors = {
|
|
|
|
"white": (255, 255, 255),
|
|
|
|
"black": (0, 0, 0),
|
|
|
|
"red": (255, 0, 0)
|
|
|
|
}
|
2024-03-10 21:24:30 +01:00
|
|
|
|
2024-03-19 21:08:24 +01:00
|
|
|
|
2024-03-25 11:21:23 +01:00
|
|
|
def extractPredicts(houses: list) -> set:
|
|
|
|
preds = set()
|
|
|
|
for house in houses:
|
|
|
|
temp = [house, house.getGarbage().getPredict()]
|
|
|
|
preds.add(temp)
|
|
|
|
return preds
|
|
|
|
|
|
|
|
|
2024-03-25 11:39:10 +01:00
|
|
|
def allLocations(*lista):
|
|
|
|
final = set()
|
|
|
|
for _ in lista:
|
|
|
|
for item in _:
|
|
|
|
final.add(item)
|
|
|
|
return final
|