Explorar el Código

Added resetMap()

master
Noëlle Anthony hace 7 años
padre
commit
b307e8c4f6
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6
    0
      CellMap.py

+ 6
- 0
CellMap.py Ver fichero

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

Cargando…
Cancelar
Guardar