What's wrong in this EPD?

Discussion of chess software programming and technical issues.

Moderator: Ras

Jouni
Posts: 3849
Joined: Wed Mar 08, 2006 8:15 pm
Full name: Jouni Uski

What's wrong in this EPD?

Post by Jouni »

[d]3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w - f6 0 1

Makes Chessbase GUI to crash..

Jouni
ZirconiumX
Posts: 1362
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: What's wrong in this EPD?

Post by ZirconiumX »

You sure you don't mean a FEN?

Matthew:out
tu ne cede malis, sed contra audentior ito
Jouni
Posts: 3849
Joined: Wed Mar 08, 2006 8:15 pm
Full name: Jouni Uski

Re: What's wrong in this EPD?

Post by Jouni »

Yes FEN. In Arena:

1. exf6 {+1.19/12 2 Arena Adjudication. Illegal move!} 1-0

Jouni
User avatar
Aser Huerga
Posts: 812
Joined: Tue Jun 16, 2009 10:09 am
Location: Spain

Re: What's wrong in this EPD?

Post by Aser Huerga »

Jouni wrote:[d]3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w - f6 0 1

Makes Chessbase GUI to crash..

Jouni
Maybe the extra blank before f6?

[d]3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w -f6 0 1

It works for me in Arena.
lucasart
Posts: 3243
Joined: Mon May 31, 2010 1:29 pm
Full name: lucasart

Re: What's wrong in this EPD?

Post by lucasart »

Aser Huerga wrote:
Jouni wrote:[d]3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w - f6 0 1

Makes Chessbase GUI to crash..

Jouni
Maybe the extra blank before f6?

[d]3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w -f6 0 1

It works for me in Arena.
On the contrary, the extra blank is essential. Parameters must always be separated by a single space. I would say that

Code: Select all

3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w  - f6 0 1 
is correct, and

Code: Select all

3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w  -f6 0 1 
is incorrect.

If your GUI says otherwise then the bug is in the GUI !

Here is the standard definition of a FEN
http://en.wikipedia.org/wiki/Forsyth%E2 ... s_Notation

Here's what happens when passing both FEN in StockFish 2.1.1

Code: Select all

position fen 3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w  - f6 0 1
position fen 3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w  -f6 0 1     
Error in FEN string: 3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w -f6 0 1 
User avatar
hgm
Posts: 28480
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: What's wrong in this EPD?

Post by hgm »

Extra blank??? There is supposed to be a blank between castling and e.p. field, right? I only see one blank in the posted FEN. If I copy-paste it from the forum to WinBoard, it works with Stockfish. (i.e. I can e.p. capture.) Fairy-Max refuses it, but Fairy-Max uses the old edit command to set up positions, and these have no provision for transmitting e.p. rights, so this is not really a mystery.
lucasart
Posts: 3243
Joined: Mon May 31, 2010 1:29 pm
Full name: lucasart

Re: What's wrong in this EPD?

Post by lucasart »

Jouni wrote:[d]3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w - f6 0 1

Makes Chessbase GUI to crash..

Jouni
your FEN is definitely correct, and there must always be a single space between the different FEN components. One space, not zero, and not 2 or more.
It's strange that commonly used GUIs like ChessBase and Arena have such a simple bug...
elpapa
Posts: 211
Joined: Sun Jan 18, 2009 11:27 pm
Location: Sweden
Full name: Patrik Karlsson

Re: What's wrong in this EPD?

Post by elpapa »

Jouni wrote:Yes FEN. In Arena:

1. exf6 {+1.19/12 2 Arena Adjudication. Illegal move!} 1-0

Jouni

Arena seems to think it's black's turn to move for some reason, otherwise the move would be legal. Also if white made the illegal move, the game should have ended 0-1.
User avatar
Aser Huerga
Posts: 812
Joined: Tue Jun 16, 2009 10:09 am
Location: Spain

Re: What's wrong in this EPD?

Post by Aser Huerga »

lucasart wrote: On the contrary, the extra blank is essential. Parameters must always be separated by a single space. I would say that

Code: Select all

3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w  - f6 0 1 
is correct, and

Code: Select all

3r2k1/6p1/p3p2p/4Pp2/2P3PP/3pB1n1/PP6/2KR4 w  -f6 0 1 
is incorrect.

If your GUI says otherwise then the bug is in the GUI !

Here is the standard definition of a FEN
http://en.wikipedia.org/wiki/Forsyth%E2 ... s_Notation
It works for me either way coping the FEN to the clipboard and paste in Arena. I simply had the idea that it could have to do with the dash, sorry ...
Jouni
Posts: 3849
Joined: Wed Mar 08, 2006 8:15 pm
Full name: Jouni Uski

Re: What's wrong in this EPD?

Post by Jouni »

OK I found it. I first was sure this is Chessbage bug, then Rybka bug, but it's Komodo bug! It crashes after e.p. move! For to do list Don :)

Jouni