bug-gnu-chess
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible bug in load command for a FEN file.


From: Clayten Gillis
Subject: Possible bug in load command for a FEN file.
Date: Fri, 3 Apr 2015 16:51:38 -0400

Hello,

     I am using gnuchess as a chess engine for a website I have developed.  After a player makes a move, I generate a FEN file, spawn a process that runs 'gnuchess -x' and sends commands via standard in and reads from standard out.
     I have come across a FEN position that gnuchess says is bad but is being verified by other tools as being correct.  I have verified the same results manually.

Versions tried:
gnuchess 6.2.1, 6.1.2, 6.1.1

FEN string:
2kr4/pp3pp1/4b1p1/2R5/8/1P4P1/P1PP3r/2K5 b - 2 21

To cause the error:

1. Save the above FEN string into a file.
2. Run gnuchess -x
3. type load <pathandnameoffile>

From my gnuchess I get this:

TimeLimit[0] = 0
TimeLimit[1] = 0

black    a1
. . k r . . . .
p p . . . p p .
. . . . b . p .
. R . . . . . .
. . . . . . . .
. P . . . . P .
P . P P . . . r
. . K . . . . .
 
board_from_fen(): bad FEN (pos=45)

I have loaded the same FEN into a few viewers and they say the position is fine.  If you could confirm if this is an error or not that would be great.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]