2024-05-11 13:24:09 +02:00
|
|
|
#THESE DICTIONARIES ARE USED FOR DISPLAY AND FOR DOCUMENTATION PURPOSES
|
|
|
|
|
2024-05-10 18:33:38 +02:00
|
|
|
seasons={
|
2024-05-11 13:24:09 +02:00
|
|
|
0:"zima",
|
|
|
|
1:"wiosna",
|
|
|
|
2:"lato",
|
|
|
|
3:"jesien"}
|
2024-05-10 18:33:38 +02:00
|
|
|
|
|
|
|
time={
|
2024-05-11 13:24:09 +02:00
|
|
|
0:"rano",
|
|
|
|
1:"poludnie",
|
|
|
|
2:"wieczor",
|
|
|
|
3:"noc"}
|
|
|
|
|
|
|
|
rain={
|
|
|
|
0:"brak",
|
|
|
|
1:"lekki deszcz",
|
|
|
|
2:"normalny deszcz",
|
|
|
|
3:"ulewa"
|
|
|
|
}
|
2024-05-10 18:33:38 +02:00
|
|
|
|
2024-05-11 13:24:09 +02:00
|
|
|
temperature={
|
|
|
|
0:"bardzo zimno",
|
|
|
|
1:"zimno",
|
|
|
|
2:"przecietnie",
|
|
|
|
3:"cieplo",
|
|
|
|
4:"upal",}
|
2024-05-10 18:33:38 +02:00
|
|
|
|
|
|
|
def getNextSeason(season):
|
2024-05-11 13:24:09 +02:00
|
|
|
if(season==3):
|
|
|
|
return 0
|
|
|
|
else:
|
|
|
|
return season+1
|
2024-05-10 18:33:38 +02:00
|
|
|
|
|
|
|
def getNextTime(currentTime):
|
2024-05-11 13:24:09 +02:00
|
|
|
if(currentTime==3):
|
|
|
|
return 0
|
|
|
|
else:
|
|
|
|
return currentTime+1
|
|
|
|
|
|
|
|
def getAmount(type):
|
|
|
|
if(type=="seasons"):
|
|
|
|
return len(seasons)
|
|
|
|
if(type=="rain"):
|
|
|
|
return len(rain)
|
|
|
|
if(type=="time"):
|
|
|
|
return len(time)
|
|
|
|
if(type=="temperature"):
|
|
|
|
return len(temperature)
|