short game causing Stockfish 10 to be unable to load

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

smcracraft
Posts: 737
Joined: Wed Mar 08, 2006 8:08 pm
Location: Orange County California
Full name: Stuart Cracraft

short game causing Stockfish 10 to be unable to load

Post by smcracraft »

[pgn] 1. e4 e5 2. Bc4 Nf6 3. Nf3 Nxe4 4. Nxe5 Qe7 5. Qe2 Qxe5 6. d3 d5 7. f4 Qe7 8. dxe4 dxc4 9. Qxc4 Nc6 10. O-O Qc5+ 11. Qxc5 Bxc5+ 12. Kh1 Nd4 13. Be3 Nxc2 14. Bxc5 Nxa1 15. Na3 Nb3 16. axb3 b6 17. Bb4 Bb7 18. e5 O-O-O 19. Rc1 Rd4 20. Bd6 c5 21. g3 Rd1# * [/pgn]

The above program if loaded into Stockfish 10 with File/Open errors out stockfish with the error

"The document could not be opened"

Despite the 100+ other games in a related file it was extracted from being able to be fully opened in Stockfish 10.

Thoughts?
User avatar
Guenther
Posts: 4606
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: short game causing Stockfish 10 to be unable to load

Post by Guenther »

smcracraft wrote: Mon Dec 17, 2018 7:23 am [pgn] 1. e4 e5 2. Bc4 Nf6 3. Nf3 Nxe4 4. Nxe5 Qe7 5. Qe2 Qxe5 6. d3 d5 7. f4 Qe7 8. dxe4 dxc4 9. Qxc4 Nc6 10. O-O Qc5+ 11. Qxc5 Bxc5+ 12. Kh1 Nd4 13. Be3 Nxc2 14. Bxc5 Nxa1 15. Na3 Nb3 16. axb3 b6 17. Bb4 Bb7 18. e5 O-O-O 19. Rc1 Rd4 20. Bd6 c5 21. g3 Rd1# * [/pgn]

The above program if loaded into Stockfish 10 with File/Open errors out stockfish with the error

"The document could not be opened"

Despite the 100+ other games in a related file it was extracted from being able to be fully opened in Stockfish 10.

Thoughts?
You did not even bother to replay the 'game', before asking?
In this case you would have noticed that 21. g3 cannot be executed in the javascript,
because it is an illegal move...
https://rwbc-chess.de

trollwatch:
Chessqueen + chessica + AlexChess + Eduard + Sylwy
smcracraft
Posts: 737
Joined: Wed Mar 08, 2006 8:08 pm
Location: Orange County California
Full name: Stuart Cracraft

Re: short game causing Stockfish 10 to be unable to load

Post by smcracraft »

Obviously blind. Longstanding bug in my program where it did not check the legality of the move played by the human after entry at the main command loop.

Checks in search were correct.

Fixed and move on.