From da791d3ec5d3e424f1b508288161755ae9f9ca8b Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Fri, 3 Dec 2021 17:01:19 +0100 Subject: [PATCH] Grid.set() sets pos to True by default --- grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid.py b/grid.py index a124e29..e3f9c89 100644 --- a/grid.py +++ b/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: