Alomst unuseful.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
/// move, and one which takes a 'from' and a 'to' square. The function does
/// not yet understand promotions captures.
/// move, and one which takes a 'from' and a 'to' square. The function does
/// not yet understand promotions captures.
-int Position::see(Move m) const {
-
- assert(move_is_ok(m));
- return see(move_from(m), move_to(m));
-}
-
int Position::see_sign(Move m) const {
assert(move_is_ok(m));
int Position::see_sign(Move m) const {
assert(move_is_ok(m));
if (midgame_value_of_piece_on(to) >= midgame_value_of_piece_on(from))
return 1;
if (midgame_value_of_piece_on(to) >= midgame_value_of_piece_on(from))
return 1;
-int Position::see(Square from, Square to) const {
+int Position::see(Move m) const {
Bitboard occupied, attackers, stmAttackers, b;
int swapList[32], slIndex = 1;
PieceType capturedType, pt;
Color stm;
Bitboard occupied, attackers, stmAttackers, b;
int swapList[32], slIndex = 1;
PieceType capturedType, pt;
Color stm;
- assert(square_is_ok(from));
- assert(square_is_ok(to));
+ from = move_from(m);
+ to = move_to(m);
capturedType = type_of_piece_on(to);
// King cannot be recaptured
capturedType = type_of_piece_on(to);
// King cannot be recaptured
void undo_null_move();
// Static exchange evaluation
void undo_null_move();
// Static exchange evaluation
- int see(Square from, Square to) const;
int see(Move m) const;
int see_sign(Move m) const;
int see(Move m) const;
int see_sign(Move m) const;