Skip to content

Commit

Permalink
Simplify histories movepick formula
Browse files Browse the repository at this point in the history
Passed STC:
LLR: 2.93 (-2.94,2.94) <-1.75,0.25>
Total: 81440 W: 21100 L: 20929 D: 39411
Ptnml(0-2): 248, 9659, 20718, 9864, 231
https://tests.stockfishchess.org/tests/view/6659a8b7ea624d64ea5f3208

Passed LTC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 85758 W: 21763 L: 21607 D: 42388
Ptnml(0-2): 34, 9606, 23463, 9722, 54
https://tests.stockfishchess.org/tests/view/6659d7bff426908fcc6b692c

closes #5326

bench: 1280472
  • Loading branch information
FauziAkram authored and vondele committed Jun 1, 2024
1 parent b0870cf commit ec1cda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/movepick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void MovePicker::score() {
Square to = m.to_sq();

// histories
m.value = 2 * (*mainHistory)[pos.side_to_move()][m.from_to()];
m.value = (*mainHistory)[pos.side_to_move()][m.from_to()];
m.value += 2 * (*pawnHistory)[pawn_structure_index(pos)][pc][to];
m.value += 2 * (*continuationHistory[0])[pc][to];
m.value += (*continuationHistory[1])[pc][to];
Expand Down

0 comments on commit ec1cda1

Please sign in to comment.