Przeglądaj źródła

decrease knight center importance

Nicolas Winkler 2 lat temu
rodzic
commit
1317430cee
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/evaluate.rs

+ 1 - 1
src/evaluate.rs

@@ -108,7 +108,7 @@ fn knight_value(game: &Game, side: Side) -> PosValue {
     let center = (ROW_4 | ROW_5) & (FILE_D | FILE_E);
     let center_knights = (game.get_piece(KNIGHT, side) & center).count_ones() as PosValue;
     
-    center_knights * 20 + k_attacks as PosValue + ((num_knights * 75 * num_opp_pawns) / 8) as PosValue
+    center_knights * 6 + k_attacks as PosValue + ((num_knights * 75 * num_opp_pawns) / 8) as PosValue
 }
 
 fn material_value(game: &Game, side: Side) -> PosValue {