Update code.js

This commit is contained in:
AUnicornWithNoLife 2021-04-12 07:53:08 +01:00
parent 759eccd419
commit 3253184778

View File

@ -74,10 +74,13 @@ function move(id)
function win() function win()
{ {
console.log(board);
// row // row
for (var x = 0; x >= 2; x++) for (var x = 0; x >= 2; x++)
{ {
console.log(x + " : " + board[x][0][0]);
if (board[x][0][0] != 0) if (board[x][0][0] != 0)
{ {
if (board[x][0][0] == board[x][1][0]) if (board[x][0][0] == board[x][1][0])
@ -141,4 +144,9 @@ function win()
} }
return 0; return 0;
}
function reset()
{
} }