Crafty setboard bug

Discussion of chess software programming and technical issues.

Moderator: Ras

jwes
Posts: 778
Joined: Sat Jul 01, 2006 7:11 am

Crafty setboard bug

Post by jwes »

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.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty setboard bug

Post by bob »

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.
Thanks. Fixed and will be in 23.4 when it is released.