Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Most obscure bug *ever*

Author: Dann Corbit

Date: 12:47:37 10/24/02

Go up one level in this thread


On October 23, 2002 at 21:40:23, Dave Gomboc wrote:

>On October 23, 2002 at 15:25:04, Colin Frayn wrote:
>
>>Then I suddenly realised.  Carlos had been sending strings to the engine of the
>>form;
>>3r4/5b2/1k1r1p2/Np5p/4P1p1/2R1KPP1/2P4P/R7 w
>>
>>(i.e. missing off the last two dashes.)  The full string should be
>>3r4/5b2/1k1r1p2/Np5p/4P1p1/2R1KPP1/2P4P/R7 w - -
>>
>>but of course the shortened version should still be valid.
>
>Why do you say that?  All those fields are required.  The EPD parsing code I
>ahve written throws an exception on your first example.  Sounds like that would
>have saved you a lot of grief!

If castling is impossible, it's not hard to figure out what the flags are.
Leaving them out is a common mistake.

Similarly, Winboard will accept all sorts of goo as PGN.  It just silently eats
the ugly crud and turns it into a clean version.



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.