Play all maps each generation
Also disabled some too hard maps
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user