mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-23 21:27:14 +00:00
Refactor: Simplify pawn structure indexing
Refactoring the mechanism for calculating pawn structure hash indices and make it consistent with the rest. closes https://github.com/official-stockfish/Stockfish/pull/6205 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
a6e34f128f
commit
8e733d68fd
+1
-1
@@ -158,7 +158,7 @@ ExtMove* MovePicker::score(MoveList<Type>& ml) {
|
||||
{
|
||||
// histories
|
||||
m.value = 2 * (*mainHistory)[us][m.from_to()];
|
||||
m.value += 2 * (*pawnHistory)[pawn_structure_index(pos)][pc][to];
|
||||
m.value += 2 * (*pawnHistory)[pawn_history_index(pos)][pc][to];
|
||||
m.value += (*continuationHistory[0])[pc][to];
|
||||
m.value += (*continuationHistory[1])[pc][to];
|
||||
m.value += (*continuationHistory[2])[pc][to];
|
||||
|
||||
Reference in New Issue
Block a user