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

else: else:
self.printScreen() 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): def createMap(self):
""" Initializes an x by y grid. """ Initializes an x by y grid.
x is width, y is height x is width, y is height

Loading…
Cancel
Save