From 4d6d348b668b0f97bf0a246b1d562eed6ac0aa40 Mon Sep 17 00:00:00 2001 From: imkunet Date: Mon, 11 Mar 2024 07:44:43 -0400 Subject: [PATCH] Make the game actually function as intended Previous versions were busted because they didn't check to see if every domino slot was filled --- src/pages/Game.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/Game.tsx b/src/pages/Game.tsx index 5422d24..9a855d5 100644 --- a/src/pages/Game.tsx +++ b/src/pages/Game.tsx @@ -313,6 +313,7 @@ export default function Game() { createEffect(() => { if (!inGame()) return; + if (grid().find((v) => v === null) != undefined) return; if (colNumbers().find((v, i) => v != colSolvedNumbers()[i]) != undefined) return; if (rowNumbers().find((v, i) => v != rowSolvedNumbers()[i]) != undefined) return; setSolved(true);