if (state[i][ii] == player)
tally++;
if (tally == size) {
- if (finalize)
- for (var iii = 0; iii < size; iii++)
- cells.push([i,iii]);
+ for (var iii = 0; iii < size; iii++)
+ cells.push([i,iii]);
eog = player;
}
}
if (state[ii][i] == player)
tally++;
if (tally == size) {
- if (finalize)
- for (var iii = 0; iii < size; iii++)
- cells.push([iii,i]);
+ for (var iii = 0; iii < size; iii++)
+ cells.push([iii,i]);
eog = player;
}
}
if (i == ii && state[i][ii] == player)
tally++;
if (tally == size) {
- if (finalize)
- for (var iii = 0; iii < size; iii++)
- cells.push([iii,iii]);
+ for (var iii = 0; iii < size; iii++)
+ cells.push([iii,iii]);
eog = player;
}
}
tally++;
if (tally == size) {
eog = player;
- if (finalize)
- for (var iii = 0; iii < size; iii++)
- cells.push([iii,(size-1)-iii]);
+ for (var iii = 0; iii < size; iii++)
+ cells.push([iii,(size-1)-iii]);
eog = player;
}
if (state[i][ii] !== 0)