Browse Source

Added resetMap()

master
Noëlle Anthony 7 years ago
parent
commit
b307e8c4f6
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      CellMap.py

+ 6
- 0
CellMap.py View File

@@ -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

Loading…
Cancel
Save