mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-25 14:10:42 -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]]
|
||||
];
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue