Author: Andreas Stabel
Date: 07:06:00 06/16/98
Go up one level in this thread
On June 15, 1998 at 01:47:52, Steven J. Edwards wrote:
>Fellow Programmers:
>
>In working with Crafty's opening book PGN file wall.pgn, I noticed an
>error in SAN in one of the games. (There may be more than one; this is
>the first.) It shows up at line 3,864,317 in column 47; it is a pawn
>capture "exf1" but has no promotion indication.
>
>Have other PGN readers choked on this? If not, then they should have.
>It is incorrect to assume a promotion to a queen.
>
>Anyway, having nearly four million lines of good PGN before the first
>problem is still pretty good.
>
>-- Steven (sje@mv.mv.
Here is my report after my pretty liberal PGN parser scanned wall.pgn:
When I create the opening book from wall.pgn I get the following error
messages:
White(1): book create wall.pgn 60 3
ERROR! move 25: Bxg3-+ is illegal (line 3156187)
ERROR. comment spans over 100 lines, starting at line 3145839
ERROR! move 67: fxe1 is illegal (line 3864317)
ERROR! move 18: cxb8 is illegal (line 3911507)
ERROR! move 47: g8 is illegal (line 4009518)
I've scanned wall.pgn and found that the first error seems to be caused by
crafty not parsing the following game correctly:
[Event "cat. 14"]
[Site "Halhidiki (Greece)"]
[Date "1992.??.??"]
[Round ""]
[White "Kotronias, V (2550) "]
[Black " Psakhis, L (2570)"]
[Result "1/2-1/2"]
[ECO "C07"]
[Opening "French"]
[Variation "Tarrasch, open variation"]
1. e4 e6 2. d4 d5 3. Nd2 c5 4. Ngf3 Nf6 5. exd5 exd5 6. Bb5+ Bd7 7. Bxd7+
Nbxd7 8. O-O Be7 9. dxc5 Nxc5 10. Nb3 Nce4 11. Nfd4 Qd7 12. Qf3 O-O 13. Nf5
Bd8 14. Be3 g6 15. Ng3 Re8 16. c3 a5 17. Nd4 Ra6 18. Rad1 Ng4 19. Nc2 Rf6
20. Qxe4 { 20.Bf4 Ng5! 21.Bxg5 Rxf3 22.gxf3 Nxf2-+ } { 20.Qe2 Nexf2!-+ }
20... Rxe4 21. Nxe4 Re6 22. Ng3 Bc7 $1 { 22...Re8 23.Bf4!? } 23. c4 {
23.Rd4 Re8 24.Rfd1 B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ra1 $1 f4+ {
51...Qe3+ 52.Kh2 g4 } 52. Kh3 Qf2 53. Ra6+ Kh5 54. Kh2 f3 55. R6a2 Qh4+ 56.
Kg1 Qd4+ 57. Kf1 Qd3+ 58. Kf2 fxg2 59. Kxg2 Qe4+ 60. Kg1 g4 61. Rh2+ Kg6
62. Ra6+ 1/2-1/2
It seems that crafty doesn't parse the comments or the variations correctly
because the "Bxg3-+" is inside a comment. I suspect that the "comment spans
over 100 lines" message stems from the same parsing error because the line
number reported is less then the previous error and I don't think crafty
parse backwards.
By the way, the three last errors may be tolerated if crafty assumes
promotion to a queen when nothing is given.
Regards
Andreas Stabel
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.