+
+ Value bonus = Value(int(depth) * int(depth));
+ History.update(pos.moved_piece(ttMove), to_sq(ttMove), bonus);
+
+ if (is_ok((ss-1)->currentMove))
+ {
+ Square prevMoveSq = to_sq((ss-1)->currentMove);
+ Countermoves.update(pos.piece_on(prevMoveSq), prevMoveSq, ttMove);
+ }