浏览代码

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

正在加载...
取消
保存