SEE: add support for enpassant moves

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2008-12-21 08:29:46 +01:00
parent 2d0146fe1d
commit 72ca727b38
2 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -2284,7 +2284,8 @@ namespace {
if ( !PruneBlockingMoves
&& threat != MOVE_NONE
&& piece_is_slider(pos.piece_on(tfrom))
&& bit_is_set(squares_between(tfrom, tto), mto) && pos.see(m) >= 0)
&& bit_is_set(squares_between(tfrom, tto), mto)
&& pos.see(m) >= 0)
return false;
return true;