From d3508ee00f6401f2b2af6027388b1935d1dc1d22 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Fri, 15 Dec 2023 16:21:27 -0500 Subject: [PATCH] fix: remove typo --- tictactoe/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tictactoe/js/main.js b/tictactoe/js/main.js index 53a7abe..cfd4d52 100644 --- a/tictactoe/js/main.js +++ b/tictactoe/js/main.js @@ -177,11 +177,11 @@ const gameController = (() => { // create an array of diagnal pieces let diagArray = [ [gameBoard[0][0], gameBoard[1][1], gameBoard[2][2]], - [gameBoard[0, 2], gameBoard[1][1], gameBoard[2][0]] + [gameBoard[0][2], gameBoard[1][1], gameBoard[2][0]] ]; - let checkGameBoard = [gameBoard, diagArray[0],diagArray[1], vertArray]; - for (i = 0; i < 3; i++) { + let checkGameBoard = [gameBoard, vertArray, [diagArray[0]], [diagArray[1]]]; + for (i = 0; i < 4; i++) { let outcome = _evalGameOutcome(checkGameBoard[i]); if (outcome) { return true;