From f55cb79a70826764ad8f506cb1cfff69d3bdf910 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 17 Mar 2018 00:22:22 +0900 Subject: [PATCH] Refactor --- src/common/othello/ai/back.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/othello/ai/back.ts b/src/common/othello/ai/back.ts index b87ab9985..42a256c0b 100644 --- a/src/common/othello/ai/back.ts +++ b/src/common/othello/ai/back.ts @@ -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; } // 巻き戻し