より良い重み付け

This commit is contained in:
syuilo 2018-03-16 22:23:53 +09:00 committed by GitHub
parent d03d873e39
commit bc3e50420d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,7 +135,7 @@ function onGameStarted(g) {
if (get(x - 1, y ) == 'null') count++; if (get(x - 1, y ) == 'null') count++;
if (get(x - 1, y - 1) == 'null') count++; if (get(x - 1, y - 1) == 'null') count++;
//return Math.pow(count, 3); //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; botColor = game.user1_id == id && game.black == 1 || game.user2_id == id && game.black == 2;