illegal FEN error from Gaviota

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
stevemulligan
Posts: 117
Joined: Wed Jul 20, 2011 2:54 pm
Location: Ottawa, Canada

illegal FEN error from Gaviota

Post by stevemulligan »

I'm trying to use Gaviota to give me a score for a certain position (64-bit linux v0.84)

Code: Select all

setboard rn2kbnr/ppp2ppp/8/8/2PP4/2K5/PPq2P1P/RNBb4 b kq -
Error (wrong FEN or EPD): rn2kbnr/ppp2ppp/8/8/2PP4/2K5/PPq2P1P/RNBb4 b kq -
tellusererror Error loading FEN:
rn2kbnr/ppp2ppp/8/8/2PP4/2K5/PPq2P1P/RNBb4 b kq -
The real position is actually with white to move but I flipped over to blacks move just to see what the score would be and I got this error and I'm not sure why.

This works fine:

Code: Select all

setboard rn2kbnr/ppp2ppp/8/8/2PP4/2K5/PPq2P1P/RNBb4 w kq -

(position was taken from GiuocoPiano.pgn)
User avatar
Evert
Posts: 2929
Joined: Sat Jan 22, 2011 12:42 am
Location: NL

Re: illegal FEN error from Gaviota

Post by Evert »

Ehm... did you actually look at the position?

Hint: look at the position of the white king and the black queen. ;)
User avatar
stevemulligan
Posts: 117
Joined: Wed Jul 20, 2011 2:54 pm
Location: Ottawa, Canada

Re: illegal FEN error from Gaviota

Post by stevemulligan »

Evert wrote:Ehm... did you actually look at the position?
ha thanks. It can't be blacks move because that would mean white had just moved into check. Makes sense now.
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: illegal FEN error from Gaviota

Post by michiguel »

stevemulligan wrote:
Evert wrote:Ehm... did you actually look at the position?
ha thanks. It can't be blacks move because that would mean white had just moved into check. Makes sense now.
Gaviota is very picky about FEN input, to avoid positions that make it crash.

It has a bonus for side to move, which is close to ~11 centipawns, IIRC. You will notice probably this difference is you flip sides (2 * 11, actually).

Miguel