mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Introduce PieceSquareTable[16][64]
Instead of MgPieceSquareTable[16][64] and EgPieceSquareTable[16][64] This allows to fetch mg and eg values from adjacent words in memory. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -221,7 +221,7 @@ void MovePicker::score_noncaptures() {
|
||||
hs += 1000;
|
||||
|
||||
// pst based scoring
|
||||
cur->score = hs + pos.pst_delta<Position::MidGame>(piece, from, to);
|
||||
cur->score = hs + pos.pst_delta(piece, from, to).mg();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user