X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=a3d9f7c8a73958ca7c8235e6f62c81ec85479d58;hp=9a20292bd010fda49a36b7ff3e060109eda749f5;hb=9f28d8a854d05c6c6edcd6f8911b352477f82c91;hpb=76bed11f7b79d939c250c02d73d0c1e2628e7a17 diff --git a/src/material.cpp b/src/material.cpp index 9a20292b..a3d9f7c8 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -171,14 +171,14 @@ MaterialInfo* MaterialInfoTable::get_material_info(const Position& pos) { mi->evaluationFunction = &EvaluateKKX; return mi; } - else if ( pos.pieces() == EmptyBoardBB - && pos.pieces() == EmptyBoardBB - && pos.pieces() == EmptyBoardBB) + else if ( pos.pieces(PAWN) == EmptyBoardBB + && pos.pieces(ROOK) == EmptyBoardBB + && pos.pieces(QUEEN) == EmptyBoardBB) { // Minor piece endgame with at least one minor piece per side and // no pawns. Note that the case KmmK is already handled by KXK. - assert((pos.pieces(WHITE) | pos.pieces(WHITE))); - assert((pos.pieces(BLACK) | pos.pieces(BLACK))); + assert((pos.pieces(KNIGHT, WHITE) | pos.pieces(BISHOP, WHITE))); + assert((pos.pieces(KNIGHT, BLACK) | pos.pieces(BISHOP, BLACK))); if ( pos.piece_count(WHITE, BISHOP) + pos.piece_count(WHITE, KNIGHT) <= 2 && pos.piece_count(BLACK, BISHOP) + pos.piece_count(BLACK, KNIGHT) <= 2)