From 6898f58faa9f1ca16f55d09edecd6b05b4f67117 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Fri, 15 Dec 2023 10:23:13 -0500 Subject: [PATCH] fix: expand array --- tictactoe/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tictactoe/js/main.js b/tictactoe/js/main.js index 70c4441..53a7abe 100644 --- a/tictactoe/js/main.js +++ b/tictactoe/js/main.js @@ -180,7 +180,7 @@ const gameController = (() => { [gameBoard[0, 2], gameBoard[1][1], gameBoard[2][0]] ]; - let checkGameBoard = [gameBoard, diagArray, vertArray]; + let checkGameBoard = [gameBoard, diagArray[0],diagArray[1], vertArray]; for (i = 0; i < 3; i++) { let outcome = _evalGameOutcome(checkGameBoard[i]); if (outcome) {