]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Implement MaxGain table
[stockfish] / src / position.cpp
index a389e9c05a6e77d3892ae240b644a3ee730062e7..2508db669dfb2241ed0e4c322fbfb6fbd8d0cfe0 100644 (file)
@@ -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