handle draw

This commit is contained in:
Daniel Bulant 2023-01-20 22:34:34 +01:00
parent af7f4e0bd0
commit 4dc693ddb6

View file

@ -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;
}
}