amitkumar3968 / raptor-chess-interface

Automatically exported from code.google.com/p/raptor-chess-interface
0 stars 0 forks source link

FEN is stored improperly in saved fischerRandom games #343

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. play wild/fr game on FICS with autosaving of PGN turned on

What is the expected output? What do you see instead?

For the "FEN" PGN string, the expected output is a "1" at the very end.
Instead I see a "0".

I.e., I get this in my PGN for a wild/fr (fischer random, aka chess960)
[FEN "rqknbbnr/pppppppp/8/8/8/8/PPPPPPPP/RQKNBBNR w KQkq - 0 0"]
when the proper one is this:
[FEN "rqknbbnr/pppppppp/8/8/8/8/PPPPPPPP/RQKNBBNR w KQkq - 0 1"]

From what I can tell no one stores FEN like this (see
http://en.wikipedia.org/wiki/Forsyth-Edwards_Notation, chess forums/sites,
etc.).

What version of the product are you using? On what operating system and
what environment?

Linux 64-bit, Beta1e

Original issue reported on code.google.com by firepot...@gmail.com on 9 Dec 2009 at 7:09

GoogleCodeExporter commented 9 years ago
I forgot to add, when I mean FEN, I mean for *starting positions* of wild/fr 
games (I
haven't adjourned wild/fr games to know the behavior in situations where the 
FEN is
from mid-game -- but I suspect that too will be an off-by-1 type error).

Original comment by firepot...@gmail.com on 9 Dec 2009 at 7:16

GoogleCodeExporter commented 9 years ago
Good find, its a bug. I will fix it in the next release.

Original comment by carsonday on 9 Dec 2009 at 3:30

GoogleCodeExporter commented 9 years ago

Original comment by carsonday on 9 Dec 2009 at 3:32

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1166.

Original comment by carsonday on 9 Dec 2009 at 4:59