mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 05:13:09 +02:00
Refactor
This commit is contained in:
parent
747099821f
commit
f55cb79a70
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
// 巻き戻し
|
||||
|
|
Loading…
Reference in a new issue