Introduce captured_piece()

It will be used by future patches and also rearranges some
half cooked code that mistakenly ended up in master in the
past.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-03-08 14:57:01 +01:00
parent 49dfc50b12
commit eaed535c5f
2 changed files with 7 additions and 8 deletions

View File

@@ -1301,11 +1301,6 @@ 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