X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fendgame.cpp;h=fd4c92f708e61ac14d4ffa1e1a6ab68ad00fad76;hp=9cc0c37211d470c76d11e6b54045e55c0ad3b756;hb=3fda064a669c2bcecfa31d66c661efa7408499de;hpb=a6e292034a60597d8d0a3dc00e9c1eb94b1112ac diff --git a/src/endgame.cpp b/src/endgame.cpp index 9cc0c372..fd4c92f7 100644 --- a/src/endgame.cpp +++ b/src/endgame.cpp @@ -217,7 +217,7 @@ Value Endgame::operator()(const Position& pos) const { Color us = strongSide == pos.side_to_move() ? WHITE : BLACK; - if (!Bitbases::probe_kpk(wksq, psq, bksq, us)) + if (!Bitbases::probe(wksq, psq, bksq, us)) return VALUE_DRAW; Value result = VALUE_KNOWN_WIN + PawnValueEg + Value(rank_of(psq)); @@ -852,5 +852,5 @@ ScaleFactor Endgame::operator()(const Position& pos) const { // Probe the KPK bitbase with the weakest side's pawn removed. If it's a draw, // it's probably at least a draw even with the pawn. - return Bitbases::probe_kpk(wksq, psq, bksq, us) ? SCALE_FACTOR_NONE : SCALE_FACTOR_DRAW; + return Bitbases::probe(wksq, psq, bksq, us) ? SCALE_FACTOR_NONE : SCALE_FACTOR_DRAW; }