crafty bug in annotate

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

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

crafty bug in annotate

Post by jwes »

If a pgn file has a fen string for the start position, annotate fails on the next file (or if DEBUG is defined, it gives a message "ERROR! hash_key is bad" on the first move after the FEN). I think that the problem is that [FEN fen] sets initial_position to the fen string, and it is not reset to "" at the end of the game.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: crafty bug in annotate

Post by bob »

jwes wrote:If a pgn file has a fen string for the start position, annotate fails on the next file (or if DEBUG is defined, it gives a message "ERROR! hash_key is bad" on the first move after the FEN). I think that the problem is that [FEN fen] sets initial_position to the fen string, and it is not reset to "" at the end of the game.
I'll take a look. I really only annotate complete games that start from the normal starting position myself, since those include all moves and therefore repetition info.