@@ -824,7 +824,7 @@ Value Search::Worker::search(
824824 if (((ss - 1 )->currentMove ).is_ok () && !(ss - 1 )->inCheck && !priorCapture)
825825 {
826826 int evalDiff = std::clamp (-int ((ss - 1 )->staticEval + ss->staticEval ), -200 , 156 ) + 58 ;
827- mainHistory[~us][((ss - 1 )->currentMove ).raw ()] << evalDiff * 9 ;
827+ mainHistory[~us][((ss - 1 )->currentMove ).from_to ()] << evalDiff * 9 ;
828828 if (!ttHit && type_of (pos.piece_on (prevSq)) != PAWN
829829 && ((ss - 1 )->currentMove ).type_of () != PROMOTION)
830830 pawnHistory[pawn_history_index (pos)][pos.piece_on (prevSq)][prevSq] << evalDiff * 14 ;
@@ -1068,7 +1068,7 @@ Value Search::Worker::search(
10681068 if (history < -4312 * depth)
10691069 continue ;
10701070
1071- history += 76 * mainHistory[us][move.raw ()] / 32 ;
1071+ history += 76 * mainHistory[us][move.from_to ()] / 32 ;
10721072
10731073 // (*Scaler): Generally, lower divisors scales well
10741074 lmrDepth += history / 3220 ;
@@ -1198,7 +1198,7 @@ Value Search::Worker::search(
11981198 ss->statScore = 803 * int (PieceValue[pos.captured_piece ()]) / 128
11991199 + captureHistory[movedPiece][move.to_sq ()][type_of (pos.captured_piece ())];
12001200 else
1201- ss->statScore = 2 * mainHistory[us][move.raw ()]
1201+ ss->statScore = 2 * mainHistory[us][move.from_to ()]
12021202 + (*contHist[0 ])[movedPiece][move.to_sq ()]
12031203 + (*contHist[1 ])[movedPiece][move.to_sq ()];
12041204
@@ -1415,7 +1415,7 @@ Value Search::Worker::search(
14151415 update_continuation_histories (ss - 1 , pos.piece_on (prevSq), prevSq,
14161416 scaledBonus * 400 / 32768 );
14171417
1418- mainHistory[~us][((ss - 1 )->currentMove ).raw ()] << scaledBonus * 220 / 32768 ;
1418+ mainHistory[~us][((ss - 1 )->currentMove ).from_to ()] << scaledBonus * 220 / 32768 ;
14191419
14201420 if (type_of (pos.piece_on (prevSq)) != PAWN && ((ss - 1 )->currentMove ).type_of () != PROMOTION)
14211421 pawnHistory[pawn_history_index (pos)][pos.piece_on (prevSq)][prevSq]
@@ -1862,10 +1862,10 @@ void update_quiet_histories(
18621862 const Position& pos, Stack* ss, Search::Worker& workerThread, Move move, int bonus) {
18631863
18641864 Color us = pos.side_to_move ();
1865- workerThread.mainHistory [us][move.raw ()] << bonus; // Untuned to prevent duplicate effort
1865+ workerThread.mainHistory [us][move.from_to ()] << bonus; // Untuned to prevent duplicate effort
18661866
18671867 if (ss->ply < LOW_PLY_HISTORY_SIZE)
1868- workerThread.lowPlyHistory [ss->ply ][move.raw ()] << bonus * 761 / 1024 ;
1868+ workerThread.lowPlyHistory [ss->ply ][move.from_to ()] << bonus * 761 / 1024 ;
18691869
18701870 update_continuation_histories (ss, pos.moved_piece (move), move.to_sq (), bonus * 955 / 1024 );
18711871
0 commit comments