This commit is contained in:
syuilo 2018-03-17 00:22:22 +09:00
parent 747099821f
commit f55cb79a70

View File

@ -349,11 +349,10 @@ function think() {
for (const p of cans) {
if (isBotTurn) {
alpha = Math.max(alpha, dive2(p, alpha, beta, depth + 1));
if (alpha >= beta) break;
} else {
beta = Math.min(beta, dive2(p, alpha, beta, depth + 1));
if (alpha >= beta) break;
}
if (alpha >= beta) break;
}
// 巻き戻し