Update code.js

This commit is contained in:
AUnicornWithNoLife 2021-04-12 10:38:21 +01:00
parent 696afc4ca2
commit b99fd39e04

View File

@ -144,8 +144,19 @@ function win()
}
}
for (var x = 0; x <= 2; x++)
{
for (var y = 0; y <= 2; y++)
{
if (board[x][y][0] == 0)
{
return 0;
}
}
}
return 3;
}
function reset()
{