mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 17:19:36 +00:00
Simplify away the PawnSet[] imbalance array (#1308)
Simplify away the PawnSet[] imbalance array STC: LLR: 2.94 (-2.94,2.94) [-3.00,1.00] Total: 52977 W: 9550 L: 9484 D: 33943 http://tests.stockfishchess.org/tests/view/5a06b4780ebc590ccbb8a833 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 83717 W: 10599 L: 10559 D: 62559 http://tests.stockfishchess.org/tests/view/5a0aa36a0ebc590ccbb8aa99 Bench: 5340212
This commit is contained in:
parent
53239d7d3d
commit
03a9b3bd8d
1 changed files with 2 additions and 7 deletions
|
@ -53,11 +53,6 @@ namespace {
|
||||||
{ 101, 100, -37, 141, 268, 0 } // Queen
|
{ 101, 100, -37, 141, 268, 0 } // Queen
|
||||||
};
|
};
|
||||||
|
|
||||||
// PawnSet[pawn count] contains a bonus/malus indexed by number of pawns
|
|
||||||
const int PawnSet[] = {
|
|
||||||
24, -32, 107, -51, 117, -9, -126, -21, 31
|
|
||||||
};
|
|
||||||
|
|
||||||
// QueenMinorsImbalance[opp_minor_count] is applied when only one side has a queen.
|
// QueenMinorsImbalance[opp_minor_count] is applied when only one side has a queen.
|
||||||
// It contains a bonus/malus for the side with the queen.
|
// It contains a bonus/malus for the side with the queen.
|
||||||
const int QueenMinorsImbalance[13] = {
|
const int QueenMinorsImbalance[13] = {
|
||||||
|
@ -100,9 +95,9 @@ namespace {
|
||||||
|
|
||||||
const Color Them = (Us == WHITE ? BLACK : WHITE);
|
const Color Them = (Us == WHITE ? BLACK : WHITE);
|
||||||
|
|
||||||
int bonus = PawnSet[pieceCount[Us][PAWN]];
|
int bonus = 0;
|
||||||
|
|
||||||
// Second-degree polynomial material imbalance by Tord Romstad
|
// Second-degree polynomial material imbalance, by Tord Romstad
|
||||||
for (int pt1 = NO_PIECE_TYPE; pt1 <= QUEEN; ++pt1)
|
for (int pt1 = NO_PIECE_TYPE; pt1 <= QUEEN; ++pt1)
|
||||||
{
|
{
|
||||||
if (!pieceCount[Us][pt1])
|
if (!pieceCount[Us][pt1])
|
||||||
|
|
Loading…
Add table
Reference in a new issue