From 5deeb35149ca72445b502586c583ea15a4186117 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 20 Aug 2022 16:11:54 +0300 Subject: feat: tweak coefficients --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index e3b043c..b446fd6 100644 --- a/src/main.c +++ b/src/main.c @@ -444,7 +444,7 @@ int compute_positioning_score(int* board, int color) { multiplier = 2; break; case KING: - multiplier = -1; // Discourage king in center (encourage castle) + multiplier = -5; // Discourage king in center (encourage castle) // TODO: encourage king in center after opponent has low material <= 6 break; default: @@ -473,7 +473,7 @@ int compute_score(int* board) { int positioning_score = compute_positioning_score(board, WHITE) - compute_positioning_score(board, BLACK); int normalized_positioning = positioning_score / 7; - return material_advantage + coverage_score + positioning_score; + return 3 * material_advantage + coverage_score + positioning_score; } int list_available_moves(Move* moves, int* board, int color) { -- cgit v1.2.3