Skip to content

Commit 818e0b2

Browse files
committed
Try more aggressive version
1 parent 3e4dfb4 commit 818e0b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/evaluate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
584584

585585
// Penalty for bishop with same coloured pawns
586586
if (Piece == BISHOP)
587-
score -= make_score(4, 4) * ei.pi->same_colored_pawn_count(s, Us);
587+
score -= make_score(8, 12) * ei.pi->same_colored_pawn_count(s, Us);
588588

589589
// Bishop and knight outposts squares
590590
if ( (Piece == BISHOP || Piece == KNIGHT)

src/material.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ namespace {
3939
const Value RedundantRookPenalty = Value(554);
4040

4141
// pair pawn knight bishop rook queen
42-
const int LinearCoefficients[6] = { 1617, -162, -1172, -62, 105, 26 };
42+
const int LinearCoefficients[6] = { 1617, -162, -1172, -190, 105, 26 };
4343

4444
const int QuadraticCoefficientsSameColor[][PIECE_TYPE_NB] = {
4545
// pair pawn knight bishop rook queen
4646
{ 7 }, // Bishop pair
4747
{ 39, 2 }, // Pawn
4848
{ 35, 271, -4 }, // Knight
49-
{ 7, 25, 4, 7 }, // Bishop
49+
{ 7, 105, 4, 7 }, // Bishop
5050
{ -27, -2, 46, 100, 56 }, // Rook
5151
{ 58, 29, 83, 148, -3, -25 } // Queen
5252
};

0 commit comments

Comments
 (0)