1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Try more aggressive version

This commit is contained in:
Joona Kiiski 2013-04-17 07:58:59 +01:00
parent 3e4dfb49a7
commit 818e0b2d2b
2 changed files with 3 additions and 3 deletions

View file

@ -584,7 +584,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
// Penalty for bishop with same coloured pawns // Penalty for bishop with same coloured pawns
if (Piece == BISHOP) if (Piece == BISHOP)
score -= make_score(4, 4) * ei.pi->same_colored_pawn_count(s, Us); score -= make_score(8, 12) * ei.pi->same_colored_pawn_count(s, Us);
// Bishop and knight outposts squares // Bishop and knight outposts squares
if ( (Piece == BISHOP || Piece == KNIGHT) if ( (Piece == BISHOP || Piece == KNIGHT)

View file

@ -39,14 +39,14 @@ namespace {
const Value RedundantRookPenalty = Value(554); const Value RedundantRookPenalty = Value(554);
// pair pawn knight bishop rook queen // pair pawn knight bishop rook queen
const int LinearCoefficients[6] = { 1617, -162, -1172, -62, 105, 26 }; const int LinearCoefficients[6] = { 1617, -162, -1172, -190, 105, 26 };
const int QuadraticCoefficientsSameColor[][PIECE_TYPE_NB] = { const int QuadraticCoefficientsSameColor[][PIECE_TYPE_NB] = {
// pair pawn knight bishop rook queen // pair pawn knight bishop rook queen
{ 7 }, // Bishop pair { 7 }, // Bishop pair
{ 39, 2 }, // Pawn { 39, 2 }, // Pawn
{ 35, 271, -4 }, // Knight { 35, 271, -4 }, // Knight
{ 7, 25, 4, 7 }, // Bishop { 7, 105, 4, 7 }, // Bishop
{ -27, -2, 46, 100, 56 }, // Rook { -27, -2, 46, 100, 56 }, // Rook
{ 58, 29, 83, 148, -3, -25 } // Queen { 58, 29, 83, 148, -3, -25 } // Queen
}; };