]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Convert TT depth to int8_t
[stockfish] / src / position.cpp
index 23370ca3f73d4ed8fedbd14595c8b30af2b332b7..b00bda24b0596b56a4661a315cfebc2e6c0195e0 100644 (file)
@@ -25,6 +25,7 @@
 
 #include "bitcount.h"
 #include "movegen.h"
+#include "notation.h"
 #include "position.h"
 #include "psqtab.h"
 #include "rkiss.h"
@@ -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;