X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=190a30f8c8c613f22dcd8351ed3609ce1ac66986;hp=f7b7f42673d2a0405580848faa25845ed3a010c5;hb=6c040c821a50475840607ef5f11c270ee21d61da;hpb=6661a3154152ab448b1dc11d882586976f616f92 diff --git a/src/movepick.cpp b/src/movepick.cpp index f7b7f426..190a30f8 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -52,7 +52,7 @@ namespace { // pick_best() finds the best move in the range (begin, end) and moves it to // the front. It's faster than sorting all the moves in advance when there // are few moves e.g. the possible captures. - inline Move pick_best(ExtMove* begin, ExtMove* end) + Move pick_best(ExtMove* begin, ExtMove* end) { std::swap(*begin, *std::max_element(begin, end)); return *begin; @@ -167,7 +167,7 @@ void MovePicker::score() { for (auto& m : *this) m.value = history[pos.moved_piece(m)][to_sq(m)] - + cmh[pos.moved_piece(m)][to_sq(m)]; + + cmh[pos.moved_piece(m)][to_sq(m)] * 3; } template<>