mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Zero more redundant coefficients
Coefficients for Bishop<->BishopPair and Bishop<->Bishop are also pretty much redundant. By altering the values in LinearCoefficients[] these coefficients can be zeroed without changing the imbalance calculations in any position with less than 3 bishops for one side. bench: 7995098
This commit is contained in:
committed by
Marco Costalba
parent
1064288b38
commit
53c04c0429
@@ -39,14 +39,14 @@ namespace {
|
|||||||
const Value RedundantRook = Value(554);
|
const Value RedundantRook = Value(554);
|
||||||
|
|
||||||
// pair pawn knight bishop rook queen
|
// pair pawn knight bishop rook queen
|
||||||
const int LinearCoefficients[6] = { 1824, -162, -1122, -190, 105, 26 };
|
const int LinearCoefficients[6] = { 1852, -162, -1122, -183, 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
|
||||||
{ 0 }, // Bishop pair
|
{ 0 }, // Bishop pair
|
||||||
{ 39, 2 }, // Pawn
|
{ 39, 2 }, // Pawn
|
||||||
{ 35, 271, -4 }, // Knight
|
{ 35, 271, -4 }, // Knight
|
||||||
{ 7, 105, 4, 7 }, // Bishop
|
{ 0, 105, 4, 0 }, // 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
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user