summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5b7a141)
Suggested by Onno.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
+ // As castle moves are implemented as capturing the rook, they have
+ // SEE == RookValueMidgame most of the times (unless the rook is under
+ // attack).
+ if (move_is_castle(m))
+ return 0;
+
from = move_from(m);
to = move_to(m);
capturedType = type_of_piece_on(to);
from = move_from(m);
to = move_to(m);
capturedType = type_of_piece_on(to);