#How to Parse PGNs that start with "0..."

8 messages · Page 1 of 1 (latest)

noble jasper
#

I noticed that at least two of the archives in the lichess database have PGNs with game notation that starts with "0..." instead of the typical "1.". I can't find any documentation on this format, and lichess's own PGN parser doesn't seem to be able to handle them. Does anyone have any info on this format?

Archives that use this format:
https://database.lichess.org/standard/lichess_db_standard_rated_2024-10.pgn.zst
https://database.lichess.org/standard/lichess_db_standard_rated_2018-03.pgn.zst

fossil fossil
#

Most parsers ignore move orders so hopefully it works

#

It’s not supposed to be there, so maybe it will be fixed in the future

#

Reportedly python chess works

#

(This is all based on what others have said in lichess)

lusty barn
#

I'll fix that

shadow ember
#

PGN is quite old. It never got the status of an OFFICIAL standard, most „PGN“ editors didn’t comply, and even the big database producers like Chessbase have their own variants. In the course of my computer science master studies, i’ll try to write an RFC for a new version that includes p.e. Chess960, illegal moves etc., and i hope to cooperate with Chessbase, lichess.org and other big players. But that will not happen the next year.