for (Thread* th : Threads)
{
th->counterMoves.clear();
- th->fromTo.clear();
+ th->history.clear();
th->counterMoveHistory.clear();
th->resetCalls = true;
}
ss->history = (cmh ? (*cmh )[moved_piece][to_sq(move)] : VALUE_ZERO)
+ (fmh ? (*fmh )[moved_piece][to_sq(move)] : VALUE_ZERO)
+ (fmh2 ? (*fmh2)[moved_piece][to_sq(move)] : VALUE_ZERO)
- + thisThread->fromTo.get(~pos.side_to_move(), move)
+ + thisThread->history.get(~pos.side_to_move(), move)
- 8000; // Correction factor
// Decrease/increase reduction by comparing opponent's stat score
Color c = pos.side_to_move();
Thread* thisThread = pos.this_thread();
- thisThread->fromTo.update(c, move, bonus);
+ thisThread->history.update(c, move, bonus);
update_cm_stats(ss, pos.moved_piece(move), to_sq(move), bonus);
if ((ss-1)->counterMoves)
// Decrease all the other played quiet moves
for (int i = 0; i < quietsCnt; ++i)
{
- thisThread->fromTo.update(c, quiets[i], -bonus);
+ thisThread->history.update(c, quiets[i], -bonus);
update_cm_stats(ss, pos.moved_piece(quiets[i]), to_sq(quiets[i]), -bonus);
}
}