Update code.js

This commit is contained in:
AUnicornWithNoLife 2021-04-13 07:20:51 +01:00
parent 8a86a90525
commit 1d2eba19fd

View File

@ -78,8 +78,6 @@ function win()
{ {
if (board[x][1][0] == board[x][2][0]) if (board[x][1][0] == board[x][2][0])
{ {
console.log("r: " + board[x][0][0]);
return board[x][0][0]; return board[x][0][0];
} }
} }
@ -96,8 +94,6 @@ function win()
{ {
if (board[1][y][0] == board[2][y][0]) if (board[1][y][0] == board[2][y][0])
{ {
console.log("c: " + board[0][y][0]);
return board[0][y][0]; return board[0][y][0];
} }
} }
@ -112,8 +108,6 @@ function win()
{ {
if (board[1][1][0] == board[2][2][0]) if (board[1][1][0] == board[2][2][0])
{ {
console.log("tl br: " + board[0][0][0]);
return board[0][0][0]; return board[0][0][0];
} }
} }