summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-17 00:22:22 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-17 00:22:22 +0900
commitf55cb79a70826764ad8f506cb1cfff69d3bdf910 (patch)
tree4dd3cdf798f5c643e818523070c4382921e65316 /src
parentRepost instead of reply (diff)
downloadsharkey-f55cb79a70826764ad8f506cb1cfff69d3bdf910.tar.gz
sharkey-f55cb79a70826764ad8f506cb1cfff69d3bdf910.tar.bz2
sharkey-f55cb79a70826764ad8f506cb1cfff69d3bdf910.zip
Refactor
Diffstat (limited to 'src')
-rw-r--r--src/common/othello/ai/back.ts3
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;
}
// 巻き戻し