mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-25 06:00:43 -05:00
refactor: remove unncessary code
This commit is contained in:
parent
d3508ee00f
commit
82b3e846a0
1 changed files with 2 additions and 2 deletions
|
@ -180,8 +180,8 @@ const gameController = (() => {
|
||||||
[gameBoard[0][2], gameBoard[1][1], gameBoard[2][0]]
|
[gameBoard[0][2], gameBoard[1][1], gameBoard[2][0]]
|
||||||
];
|
];
|
||||||
|
|
||||||
let checkGameBoard = [gameBoard, vertArray, [diagArray[0]], [diagArray[1]]];
|
let checkGameBoard = [gameBoard, vertArray, diagArray];
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 3; 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