From f8cad454c9a77eeb1d5c4d0c5647bb40c08d54b4 Mon Sep 17 00:00:00 2001 From: piyush00022 <165940608+piyush00022@users.noreply.github.com> Date: Sun, 14 Jul 2024 11:48:40 +0530 Subject: [PATCH] Update app.js after game draw count should be start from zero --- TicTacToe/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/TicTacToe/app.js b/TicTacToe/app.js index 8f1665b..b1f8721 100644 --- a/TicTacToe/app.js +++ b/TicTacToe/app.js @@ -43,6 +43,7 @@ boxes.forEach((box) => { if (count === 9 && !isWinner) { gameDraw(); + count=0; } }); });