diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-17 00:22:22 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-17 00:22:22 +0900 |
| commit | f55cb79a70826764ad8f506cb1cfff69d3bdf910 (patch) | |
| tree | 4dd3cdf798f5c643e818523070c4382921e65316 /src/common | |
| parent | Repost instead of reply (diff) | |
| download | sharkey-f55cb79a70826764ad8f506cb1cfff69d3bdf910.tar.gz sharkey-f55cb79a70826764ad8f506cb1cfff69d3bdf910.tar.bz2 sharkey-f55cb79a70826764ad8f506cb1cfff69d3bdf910.zip | |
Refactor
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/othello/ai/back.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/othello/ai/back.ts b/src/common/othello/ai/back.ts index b87ab99853..42a256c0bc 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; } // 巻き戻し |