From 95b8b0a20f3a9caf9a91c4335f6b27573602b80e Mon Sep 17 00:00:00 2001 From: Thomasm18 <39136203+Thomasm18@users.noreply.github.com> Date: Sun, 20 Oct 2019 13:51:58 +0530 Subject: [PATCH] Fixed counter error --- sketch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sketch.js b/sketch.js index 8e76edb..f656e0d 100644 --- a/sketch.js +++ b/sketch.js @@ -2,8 +2,8 @@ let grid; let score = 0; function isGameWon() { - for(let i = 0; i < 4; i++) { - for(let j = 0; j < 4; j++) { + for(let i = 0; i < 5; i++) { + for(let j = 0; j < 5; j++) { if(grid[i][j] == 0) { return false; }