mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-25 22:10:43 -05:00
fix: expand array
This commit is contained in:
parent
87be725167
commit
6898f58faa
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue