Parcourir la source

Added resetMap()

master
Noëlle Anthony il y a 6 ans
Parent
révision
b307e8c4f6
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6
    0
      CellMap.py

+ 6
- 0
CellMap.py Voir le fichier

@@ -111,6 +111,12 @@ class CellMap:
else:
self.printScreen()

def resetMap(self):
""" Resets the map to its initial state, allowing the user to experiment
with death/birth limits and number of repetitions on a single map.
"""
self.genmap = self.initial

def createMap(self):
""" Initializes an x by y grid.
x is width, y is height

Chargement…
Annuler
Enregistrer