mirror of
https://github.com/danbulant/slightlyComplicatedTicTacToe
synced 2026-06-19 06:21:19 +00:00
handle draw
This commit is contained in:
parent
af7f4e0bd0
commit
4dc693ddb6
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@
|
|||
if(containerStates[2] == containerStates[4] && containerStates[4] == containerStates[6] && containerStates[2] != 0) {
|
||||
overallState = containerStates[2];
|
||||
}
|
||||
if(!overallState && moves.length == 81) {
|
||||
if(containerStates.every(state => state != 0)) {
|
||||
overallState = 3;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue