Menu

#3 Pinned en passant move generation bug

open
nobody
None
5
2011-06-15
2011-06-15
ktakusa
No

The following position: 8/8/3p4/KPp3r1/5p1k/8/1R2P1P1/8 w - c6 0 1
has a problem with the move generator (Position.getAllMoves()) which generates bxc6 en passant capture, but that move is illegal, because it would leave the king in check.

MoveablePosition p=new Position("8/8/3p4/KPp3r1/5p1k/8/1R2P1P1/8 w - c6 0 1");
System.out.println(p.getMovesAsString(p.getAllMoves(),true));

Discussion


Log in to post a comment.

MongoDB Logo MongoDB