소스 검색

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…
취소
저장