- MovePicker mp(pos, ttMove, depth, Hist, ss, PvNode ? -VALUE_INFINITE : beta);
+ Move prevMove = (ss-1)->currentMove;
+ Square prevSq = to_sq(prevMove);
+ Piece prevP = pos.piece_on(prevSq);
+ Move refutationMove = Refutation.get(prevP, prevSq);
+
+ MovePicker mp(pos, ttMove, depth, Hist, ss, refutationMove, PvNode ? -VALUE_INFINITE : beta);