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()
{
console.log(board);
// row
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] == board[x][1][0])
@ -142,3 +145,8 @@ function win()
return 0;
}
function reset()
{
}