X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmovepick.cpp;h=c898127f3ecef51dd8b96b2bbf41737ed45082c7;hb=25b4d0c127af9fe564f7a797460bed4c2837bcc2;hp=e9f31456ac110a88833e92e571bbf046e448ed7c;hpb=36bb57a47e137f075fe546887be01fdd0d4670e3;p=stockfish diff --git a/src/movepick.cpp b/src/movepick.cpp index e9f31456..c898127f 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -255,7 +255,7 @@ void MovePicker::score_captures() { - piece_type(pos.piece_on(move_from(m))); if (move_is_promotion(m)) - cur->score += QueenValueMidgame; + cur->score += piece_value_midgame(Piece(promotion_piece_type(m))); } } @@ -331,8 +331,7 @@ Move MovePicker::get_next_move() { if (seeValue >= captureThreshold) return move; - // Losing capture, move it to the tail of the array, note - // that move has now been already checked for pseudo legality. + // Losing capture, move it to the tail of the array (--badCaptures)->move = move; badCaptures->score = seeValue; }