mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Remove pawn history from ProbCut constructor
use same style as other history tables Passed STC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 184672 W: 46953 L: 46896 D: 90823 Ptnml(0-2): 604, 21095, 48887, 21140, 610 https://tests.stockfishchess.org/tests/view/654766b4136acbc573526602 closes https://github.com/official-stockfish/Stockfish/pull/4865 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
442c294a07
commit
d0e87104aa
@@ -89,7 +89,7 @@ MovePicker::MovePicker(const Position& p,
|
||||
const ButterflyHistory* mh,
|
||||
const CapturePieceToHistory* cph,
|
||||
const PieceToHistory** ch,
|
||||
const PawnHistory& ph,
|
||||
const PawnHistory* ph,
|
||||
Move cm,
|
||||
const Move* killers) :
|
||||
pos(p),
|
||||
@@ -112,7 +112,7 @@ MovePicker::MovePicker(const Position& p,
|
||||
const ButterflyHistory* mh,
|
||||
const CapturePieceToHistory* cph,
|
||||
const PieceToHistory** ch,
|
||||
const PawnHistory& ph,
|
||||
const PawnHistory* ph,
|
||||
Square rs) :
|
||||
pos(p),
|
||||
mainHistory(mh),
|
||||
@@ -129,11 +129,9 @@ MovePicker::MovePicker(const Position& p,
|
||||
|
||||
// Constructor for ProbCut: we generate captures with SEE greater
|
||||
// than or equal to the given threshold.
|
||||
MovePicker::MovePicker(
|
||||
const Position& p, Move ttm, Value th, const CapturePieceToHistory* cph, const PawnHistory& ph) :
|
||||
MovePicker::MovePicker(const Position& p, Move ttm, Value th, const CapturePieceToHistory* cph) :
|
||||
pos(p),
|
||||
captureHistory(cph),
|
||||
pawnHistory(ph),
|
||||
ttMove(ttm),
|
||||
threshold(th) {
|
||||
assert(!pos.checkers());
|
||||
@@ -188,6 +186,7 @@ void MovePicker::score() {
|
||||
m.value += (*continuationHistory[2])[pc][to] / 4;
|
||||
m.value += (*continuationHistory[3])[pc][to];
|
||||
m.value += (*continuationHistory[5])[pc][to];
|
||||
m.value += (*pawnHistory)[pawn_structure(pos)][pc][to];
|
||||
|
||||
// bonus for checks
|
||||
m.value += bool(pos.check_squares(pt) & to) * 16384;
|
||||
@@ -209,8 +208,6 @@ void MovePicker::score() {
|
||||
: pt != PAWN ? bool(to & threatenedByPawn) * 15000
|
||||
: 0)
|
||||
: 0;
|
||||
|
||||
m.value += pawnHistory[pawn_structure(pos)][pc][to];
|
||||
}
|
||||
|
||||
else // Type == EVASIONS
|
||||
@@ -221,7 +218,7 @@ void MovePicker::score() {
|
||||
else
|
||||
m.value = (*mainHistory)[pos.side_to_move()][from_to(m)]
|
||||
+ (*continuationHistory[0])[pos.moved_piece(m)][to_sq(m)]
|
||||
+ pawnHistory[pawn_structure(pos)][pos.moved_piece(m)][to_sq(m)];
|
||||
+ (*pawnHistory)[pawn_structure(pos)][pos.moved_piece(m)][to_sq(m)];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user