Play all maps each generation

Also disabled some too hard maps
This commit is contained in:
2026-10-26 15:53:27 +01:00
parent f56b8c1e9c
commit a7a3d973a3
5 changed files with 105 additions and 46 deletions
+3
View File
@@ -21,6 +21,9 @@ class MapSet:
raise IndexError("Map index out of range.")
return self.maps[index]
def get_maps(self):
return sorted(self.maps, key=lambda m: m.difficulty)
def get_maps_by_difficulty(self, desired_difficulty: int, num_maps: int):
"""
Returns a list of maps with difficulty levels as close as possible to the desired difficulty level.