瀏覽代碼

Added resetMap()

master
Noëlle Anthony 7 年之前
父節點
當前提交
b307e8c4f6
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      CellMap.py

+ 6
- 0
CellMap.py 查看文件

@@ -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…
取消
儲存