]> git.sesse.net Git - stockfish/blobdiff - src/movepick.cpp
Change extra ply LMR condition to: cmh <= 0 && hist < 0
[stockfish] / src / movepick.cpp
index f7b7f42673d2a0405580848faa25845ed3a010c5..190a30f8c8c613f22dcd8351ed3609ce1ac66986 100644 (file)
@@ -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<QUIETS>() {
 
   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<>