Subject: | illegal enpassant move |
Date: | Thu, 18 Feb 2010 15:49:45 +0300 |
To: | bug-chess-rep [...] rt.cpan.org |
From: | DOBRO Sergei <vertolet666 [...] yandex.ru> |
Hi!
I found a bug in Chess::Rep module.
Please take a look at this PGN generated by Chess::Rep:
1. e4 c5 2. Nf3 d6 3. c3 Nc6 4. d4 cxd4
5. cxd4 Bg4 6. Nc3 e6 7. Bc4 Be7 8. O-O Nf6
9. h3 Bxf3 10. gxf3 O-O 11. Be3 a6 12. f4 b5
13. Bb3 Qc7 14. e5 dxe5 15. fxe5 Nd7 16. Qg4 Rfd8
17. Rad1 Nb6 18. Kh2 Nc4 19. Bxc4 bxc4 20. Rg1 g6
21. h4 f5 22. exf6 *
Move 22. exf6 is illegal because white king is under attack.
BTW, next black move Qxh2 (capturing King) is also allowed by Chess::Rep :)
Thanks.