|
@ -19,6 +19,10 @@ class Field: |
|
|
self.message = '' |
|
|
self.message = '' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def toggleCurrent(self): |
|
|
|
|
|
curline = self.field[self.cursor[0]] |
|
|
|
|
|
curline[self.cursor[1]] = 0 if curline[self.cursor[1]] == 1 else 1 |
|
|
|
|
|
|
|
|
def print_field(self,stdscr): |
|
|
def print_field(self,stdscr): |
|
|
stdscr.clear() |
|
|
stdscr.clear() |
|
|
for line in range(0,len(self.field)): |
|
|
for line in range(0,len(self.field)): |
|
|