Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
feelingnothing authored Dec 10, 2020
1 parent d97b15f commit 65a04a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def on_click(self, cell):
if not cell:
return
x, y = cell
self.board[x][y] = (self.board[x][y] + 1) % 2
if not self.drawing:
self.board[x][y] = (self.board[x][y] + 1) % 2

def get_neighbours(self, x, y):
def get(r, c):
Expand Down

0 comments on commit 65a04a2

Please sign in to comment.