summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
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) {