Skip to content

Commit

Permalink
Make the game actually function as intended
Browse files Browse the repository at this point in the history
Previous versions were busted because they didn't check to see if every domino slot was filled
  • Loading branch information
imkunet committed Mar 11, 2024
1 parent 93e1056 commit 4d6d348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/Game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d6d348

Please sign in to comment.