summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-03-16 22:23:53 +0900
committerGitHub <noreply@github.com>2018-03-16 22:23:53 +0900
commitbc3e50420db123e4567e5535bb4c94ee78711f65 (patch)
tree524c5905d19ba4ba5fca8be80c0f5bba90c3c670 /src
parentMerge pull request #1248 from syuilo/greenkeeper/css-loader-0.28.11 (diff)
downloadsharkey-bc3e50420db123e4567e5535bb4c94ee78711f65.tar.gz
sharkey-bc3e50420db123e4567e5535bb4c94ee78711f65.tar.bz2
sharkey-bc3e50420db123e4567e5535bb4c94ee78711f65.zip
より良い重み付け
Diffstat (limited to 'src')
-rw-r--r--src/common/othello/ai/back.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/othello/ai/back.ts b/src/common/othello/ai/back.ts
index 61dde52d13..55c77e6b34 100644
--- a/src/common/othello/ai/back.ts
+++ b/src/common/othello/ai/back.ts
@@ -135,7 +135,7 @@ function onGameStarted(g) {
if (get(x - 1, y ) == 'null') count++;
if (get(x - 1, y - 1) == 'null') count++;
//return Math.pow(count, 3);
- return count >= 5 ? 1 : 0;
+ return count >= 4 ? 1 : 0;
});
botColor = game.user1_id == id && game.black == 1 || game.user2_id == id && game.black == 2;