I had this position in an epd file:
[d]8/8/3k4/8/3P4/8/7P/8 b - -
and it caused crafty to hang. The problem is that InvalidPosition() checks for KingSq < 0 while SetChessBitBoards() sets KingSq to 64 if there is no king.
Crafty setboard bug
Moderator: Ras
-
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Crafty setboard bug
Thanks. Fixed and will be in 23.4 when it is released.jwes wrote:I had this position in an epd file:
[d]8/8/3k4/8/3P4/8/7P/8 b - -
and it caused crafty to hang. The problem is that InvalidPosition() checks for KingSq < 0 while SetChessBitBoards() sets KingSq to 64 if there is no king.