]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Cap evaluation based null move extra reduction to three plies
[stockfish] / src / position.cpp
index 23370ca3f73d4ed8fedbd14595c8b30af2b332b7..db4c857b0d25401cf97e3f70b56c8aeb10a46ee1 100644 (file)
@@ -30,6 +30,7 @@
 #include "rkiss.h"
 #include "thread.h"
 #include "tt.h"
+#include "notation.h"
 
 using std::string;
 
@@ -1116,10 +1117,6 @@ Value Position::see(Move m) const {
 
 bool Position::is_draw() const {
 
-  if (   !pieces(PAWN)
-      && (non_pawn_material(WHITE) + non_pawn_material(BLACK) <= BishopValueMg))
-      return true;
-
   if (st->rule50 > 99 && (!checkers() || MoveList<LEGAL>(*this).size()))
       return true;