diff --git a/app/Game/GameBoardState.php b/app/Game/GameBoardState.php index 427cc57..55d584d 100644 --- a/app/Game/GameBoardState.php +++ b/app/Game/GameBoardState.php @@ -59,6 +59,14 @@ class GameBoardState return $this; } + public function setAll(): self + { + for ($i = 0; $i < $this->width * $this->height; $i++) { + $this->set($i, true); + } + return $this; + } + /** * Toggle pressed state of a cell. */