mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-26 06:20:42 -05:00
fix: remove typo
This commit is contained in:
parent
6898f58faa
commit
d3508ee00f
1 changed files with 3 additions and 3 deletions
|
@ -177,11 +177,11 @@ const gameController = (() => {
|
||||||
// create an array of diagnal pieces
|
// create an array of diagnal pieces
|
||||||
let diagArray = [
|
let diagArray = [
|
||||||
[gameBoard[0][0], gameBoard[1][1], gameBoard[2][2]],
|
[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];
|
let checkGameBoard = [gameBoard, vertArray, [diagArray[0]], [diagArray[1]]];
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
let outcome = _evalGameOutcome(checkGameBoard[i]);
|
let outcome = _evalGameOutcome(checkGameBoard[i]);
|
||||||
if (outcome) {
|
if (outcome) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue