Questions tagged [pgn]

PGN stands for Portable Game Notation. This is a file format for storing chess games (both the moves and various header data such as players' names) that is easily read by people while also easy for programs to parse.

Filter by
Sorted by
Tagged with
12
votes
4answers
22k views

How to convert ChessBase format files to .pgn?

While downloading some games I came across some files in ChessBase format: .cbv .cbf .cbh I would like to know if is is possible to convert these files to .pgn format without using proprietary ...
14
votes
3answers
3k views

How are PGN ambiguities handled?

How are ambiguities handled when writing the PGN when more than one piece of the same type can move into the same square? [FEN "1R4QQ/R1R4Q/8/6pP/5P1P/8/NK1k4/1N1N4 w - g6 0 1"] Note: It isWhite to ...
8
votes
5answers
419 views

Is this case considered an ambiguity or not?

From the answer to my question How are PGN ambiguities handled?: In the case of ambiguities (multiple pieces of the same type moving to the same square), the first appropriate disambiguating step ...
12
votes
1answer
4k views

How to convert PGN moves to long algebraic notation (in python)?

I want to read a PGN file and then advance to a certain move number, and feed that to an UCI engine. Turns out engines work using long algebraic notation, and PGNs are in short algebraic. What is an ...
9
votes
1answer
4k views

Stockfish evaluation of a position from PGN

I am trying to get Stockfish's evaluation of a board position(which is in PGN format) using command line.I know it accepts board position in FEN format, but is there any way i can provide PGN format? ...
7
votes
2answers
2k views

Add comments in a pgn file

I have a pgn file containing a game. I want to add a comment into the game (like at move 23. - This is a ok move etc.) using words and not symbols. Is it possible to do this?
5
votes
3answers
2k views

What are all of the possible tags for PGN?

In a PGN file, there are tags like: [Event "Tournament"] [White "John Smith"] And so on. I would like to know all the possible tags for PGN files so I can use them in a PGN file that my friend is ...
6
votes
1answer
940 views

Parsing PGN files - when can a move be shortened?

I'm writing a PGN file parser, and need to know in which situations you don't need to write the rank/file of a piece that makes the move. I can think of the following: only one piece can conduct the ...
6
votes
1answer
938 views

Scid PGN analysis using Stockfish

Scid outputs this analysis of a PGN file using the Stockfish engine: What does the D mean? And where (e.g. a web page) is this actually explained?
4
votes
1answer
171 views

Standard for receiving live chess broadcast

I was making live broadcast recent days and I'm quite surprised how it technically worked. We were downloading whole new PGN file every 5 seconds with format shown it the code below. Is this how ...
4
votes
1answer
208 views

What is %eval syntax in PGN

I've seen two formats of [%eval] syntax in PGN: [%eval 250,5] meaning white is +2.5 pawn up at depth 5 [%eval +0.25] means white is 0.25 pawn up Is any of those mentioned by some PGN standard? Which ...
3
votes
3answers
4k views

Convert ChessBase format to PGN on Linux

I have some ChessBase-format database files, and I would like to convert them to PGN so thatlinux-compatible programs (like scid, chessdb, etc.) could read it. Since I am running on linux and not ...
2
votes
3answers
2k views

How do engines read PGN?

I'm writing a small chess engine in LISP. I was trying to read some PGN file, at first it seemed like a piece of cake. But then I realized something. Most of the PGN files, don't tell which is white ...