X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=2508db669dfb2241ed0e4c322fbfb6fbd8d0cfe0;hp=a389e9c05a6e77d3892ae240b644a3ee730062e7;hb=cfe59de27ddc42ac555187ae68879f2bc7bd7936;hpb=c43c5fe9e0c9a99947b940133df2cb2bbb57c3f9 diff --git a/src/position.cpp b/src/position.cpp index a389e9c0..2508db66 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1301,6 +1301,11 @@ void Position::undo_null_move() { } +/// +PieceType Position::captured_piece() const { + return st->capture; +} + /// Position::see() is a static exchange evaluator: It tries to estimate the /// material gain or loss resulting from a move. There are three versions of /// this function: One which takes a destination square as input, one takes a