X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=db4c857b0d25401cf97e3f70b56c8aeb10a46ee1;hp=23370ca3f73d4ed8fedbd14595c8b30af2b332b7;hb=880e3cd7c82c82776e85042c849e884811378e21;hpb=888a1d34454121c3682cbd68751bcebeca8bd308 diff --git a/src/position.cpp b/src/position.cpp index 23370ca3..db4c857b 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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(*this).size())) return true;