Sfoglia il codice sorgente

Minor bug fixes

master
Noëlle Anthony 7 anni fa
parent
commit
418d71ec17
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      CellMap.py

+ 2
- 2
CellMap.py Vedi File

@@ -115,7 +115,7 @@ class CellMap:
""" 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
self.genmap = list(self.initial)

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

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

Loading…
Annulla
Salva