ソースを参照

Minor bug fixes

master
コミット
418d71ec17
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      CellMap.py

+ 2
- 2
CellMap.py ファイルの表示

""" Resets the map to its initial state, allowing the user to experiment """ Resets the map to its initial state, allowing the user to experiment
with death/birth limits and number of repetitions on a single map. with death/birth limits and number of repetitions on a single map.
""" """
self.genmap = self.initial
self.genmap = list(self.initial)


def createMap(self): def createMap(self):
""" Initializes an x by y grid. """ Initializes an x by y grid.
new_row.append(True if random.randint(1,99) <= seed else False) new_row.append(True if random.randint(1,99) <= seed else False)
new_map.append(new_row) new_map.append(new_row)
self.initial = new_map self.initial = new_map
self.genmap = self.initial
self.genmap = new_map


def smoothMap(self): def smoothMap(self):
""" Refines the grid. """ Refines the grid.

読み込み中…
キャンセル
保存