refactor: remove unncessary code

This commit is contained in:
Mike 2023-12-15 16:33:59 -05:00
parent d3508ee00f
commit 82b3e846a0

View file

@ -180,8 +180,8 @@ const gameController = (() => {
[gameBoard[0][2], gameBoard[1][1], gameBoard[2][0]]
];
let checkGameBoard = [gameBoard, vertArray, [diagArray[0]], [diagArray[1]]];
for (i = 0; i < 4; i++) {
let checkGameBoard = [gameBoard, vertArray, diagArray];
for (i = 0; i < 3; i++) {
let outcome = _evalGameOutcome(checkGameBoard[i]);
if (outcome) {
return true;