From 9cdee52fcc14965c0000d9319206f2be9332b5ab 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; } // 巻き戻し