Checkpoint initial implementation

This commit is contained in:
Andrew Miner
2025-10-06 17:41:18 -06:00
parent 773e0a3d85
commit a8b6e6b15e
106 changed files with 3012 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
# Class ############################################################################################
class Season:
"""
A time of year demonstrating different climate and activity among flora and fauna.
"""
def __init__(self, name):
self.name = name
def __str__(self) -> str:
return self.name
def __repr__(self) -> str:
return f"Season<{self.name}>"
# Constants ########################################################################################
SPRING = Season("spring")
SUMMER = Season("summer")
AUTUMN = Season("autumn")
WINTER = Season("winter")
ALL = [SPRING, SUMMER, AUTUMN, WINTER]
WET = [WINTER, SPRING]
DRY = [SUMMER, AUTUMN]
HOT = [SUMMER]
COOL = [SPRING, AUTUMN]
COLD = [WINTER]
# Constants ########################################################################################
def excluding(target:Season) -> list[Season]:
result = []
for season in ALL:
if season == target: continue
result.append(season)
return result