Grid.set() sets pos to True by default
This commit is contained in:
parent
d0c5e319fb
commit
da791d3ec5
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