Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
8f024354e6
2
grid.py
2
grid.py
@ -47,7 +47,7 @@ class Grid:
|
||||
self.__trackBoundaries(pos)
|
||||
self.__grid[pos] = not self.__default
|
||||
|
||||
def set(self, pos: Coordinate, value: Any):
|
||||
def set(self, pos: Coordinate, value: Any = True):
|
||||
if value in OFF_STATES and pos in self.__grid:
|
||||
del self.__grid[pos]
|
||||
elif value not in OFF_STATES:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user