Update code.js
This commit is contained in:
parent
696afc4ca2
commit
b99fd39e04
11
src/code.js
11
src/code.js
@ -144,7 +144,18 @@ 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()
|
||||
|
Loading…
Reference in New Issue
Block a user