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
2
votes
1answer
41 views

How can I migrate my openings from Chess Position Trainer to another database when the pgn too large to import?

I have used Chess Position Trainer for years. I now only play "postal" chess and no longer memorize openings. Also chess position trainer is the only application I have the requires windows and I ...
3
votes
0answers
70 views

Looking for special chess freeware

I am looking for chess freeware that ideally has the following facilities, and I am wondering what compromises I'll need to accept. I am also requesting the results of your experiences. List Of Needs ...
7
votes
3answers
1k views

Render a chessboard from a PGN file

I’d like to render a 2D chessboard image and save it after the last move as a PNG or JPEG from a given PGN file on a Linux console. How can I do this? I have a PGN file and I want to get a screenshot ...
2
votes
1answer
50 views

Question on how to access a move on a line outside the main line using python-chess

I'm trying to write a simple code that is capable of reading a PGN file and searching for moves and comments throughout the variant tree. However, I have not been successful, I have not yet been able ...
2
votes
1answer
39 views

What do the numbers mean at the end of predicted variation opcode in and EPD entry?

I'm writing an EPD (Extended Position Description) parser and I have a doubt about what numbers means at end of "predicted variation" opcode. Look the follow EPD sample: rq2r1k1/5pp1/p7/4bNP1/1p2P2P/...
1
vote
1answer
114 views

Is there Python code to use the Leela neural network?

I am interested in doing some analyses of chess games using the neural network trained for Lc0. To that end I need to be able to turn PGN into the right kind of input vectors and to load and use the ...
9
votes
2answers
281 views

Does any PGN actually use the '%' (escape) or ';' (rest of line comment) mechanisms?

Trawling through the PGN standard, I was surprised by two of the specifications: An escape mechanism triggered by % at the start of a new line: There is a special escape mechanism for PGN data. ...
6
votes
2answers
192 views

Does the PGN specification mistakenly omit solidus (/) for symbol tokens?

The Portable Game Notation (PGN) specification appears to contradict itself regarding the valid characters that may appear in a symbol token. From [1], section 7, quote: A symbol token starts with ...
1
vote
2answers
92 views

How to install chess.pgn on python?

I don't know how to import chess.pgn on Python. I searched everywhere, but I didn't find anything. Can anybody here help me?
6
votes
2answers
712 views

Does anything actually use numeric annotation glyphs (NAGs)?

Numeric Annotation Glyphs, or NAGs for short, are tokens defined by the PGN standard to allow concise annotation of moves. They consist of a dollar sign ($) followed by a number, e.g. $1 means "good ...
7
votes
3answers
1k views

What happened in this game between Hong Li and Sandor Farago in the FSIM November 2018?

I downloaded a bunch of games from Kingbase which included the below game. [Event "FSIM November 2018"] [Site "Budapest HUN"] [Date "2018.11.06"] [Round "4.4"] [White "Farago, Sandor"] [Black "Li, ...
6
votes
1answer
91 views

What's the meaning of “%evp” in a PGN comment?

Example: {[%evp 0,17,14,14,14,-25,-15,-15,7,7,55,48,48,48,472,228,802,802,804,771]} 1. e4 e5 2. f4 exf4 3. Bc4 Qh4+ 4. Kf1 Bc5 5. d4 Bb6 6. Nf3 Qg4 What's the meaning of these numbers when used ...
1
vote
1answer
92 views

Convert Stockfish analysis output to pgn

It seems that there is no way to direct see Stockfish’s analysis in pgn when it evaluates a position. I am looking for a way to convert the SAN or LAN format into a PGN. Maybe it will work in Python. ...
2
votes
1answer
146 views

Analysis of chess by Philidor in PGN

Where can I find games annotated by Philidor in his book in a PGN file?
6
votes
2answers
387 views

How to evaluate and comment moves in PGN format?

I want, with Python-chess, to evaluate any movement of some game and generate the PGN with analysis, as Chess.com does in its analysis. For example, i played one game with fools mate and they ...
5
votes
3answers
376 views

Why is Apronus allowing the white king to castle through an attacked square?

I was using Apronus to make an new chess puzzle for Puzzling Stack Exchange, but then it did something odd. Take a look here: [FEN ""] 1. Nh3 f5 2. e4 fxe4 3. d3 exd3 4. Be2 Kf7 5. Qd2 dxe2 6. O-O ...
0
votes
1answer
47 views

PGN format and comments with tag pairs

Currently making a parser for PGN files. And wondering if there is any practice of using commentary in Tag pair section, like: [Event "Tournament X"];hosted once a year [Event "Tournament X"]{hosted ...
0
votes
1answer
153 views

PGN-Extract output each game to a separate file with name like opponentA-opponentB.pgn

How can I use PGN-Extract to split a multi-game pgn into separate files with just one game per file. With the pgn being named for the opponents? Like opponentA-opponentB.pgn
1
vote
3answers
787 views

How to package PGN in Lichess analysis page format

I am trying to bundle together a couple of games on my own website. I would love to have an interface like Lichess's analysis page: You can turn on the Stockfish engine, try out different moves and ...
3
votes
1answer
168 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 ...
4
votes
1answer
164 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 ...
3
votes
2answers
106 views

Can one use alternative identifiers (from languages other than English) for chesspieces in PGN?

I came across this in the PGN standard on this site, section 17, for alternative piece identifiers (emphasis mine): English language piece names are used to define the letter set for identifying ...
1
vote
2answers
270 views

Is there any software that will print a .pgn file in scoresheet layout

I'm looking for some software that will print the moves as 1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 etc. Instead of 1.e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 etc.
1
vote
2answers
232 views

pgn-extract program troubleshoot

Anyone familiar with the program pgn-extract to possibly help with a little troubleshooting? I have tried to look through manual of the program and I am coming at a loss with addressing the issue. I ...
10
votes
4answers
12k views

Chess Puzzle Database with PGN or FEN

Is there a database of chess puzzles that have the game or positions PGN and or FEN?
4
votes
1answer
206 views

Comment/variation with different starting position

When annotating games, I sometimes want to add a comment which starts from a position that is different from the current position. Like: 1. d4 d5 2.c4 { Our previous game went 1.e4 c5 ...} Or: ...
2
votes
1answer
279 views

Storing tournaments for use in Arena

I want to store a collection of games (say 20) from a certain tournament as a single unit, so when I open the file, I can view all the matches of the tournament as one, instead of viewing each game ...
5
votes
3answers
2k views

Import and export of PGN

How do I perform the following related things? Export/import PGN of games from Droidfish. Import my games to Chess.com I found an option to export my games from Chess.com (Share PGN) but I couldn'...
2
votes
1answer
693 views

PGN with arrows and circles

I recently imported a PGN file that I got from chesscafe.com into lichess.org, and was surprised to see arrows and circles on the board! Looking at the file, I figured that these graphical elements ...
0
votes
1answer
738 views

Recording games on the Play Magnus app

I've downloaded the Play Magnus app, and want to record the games (the PGN) I play. There is an option like 'Export game as PGN'(something like that) which allows me to copy the PGN to the clipboard ...
3
votes
1answer
991 views

Valid PGN variations?

I've received the following PGN text that I suspect invalid: 8.f4 {0.22/17 0 last book move} 8...e5 ( 8...b5 ( 8...Qb6 ( 8...Qc7 9.a3 What exactly the position the ...
8
votes
1answer
3k 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? ...
4
votes
2answers
415 views

What is valid PGN?

I want to build a program that makes and reads PGNs. What is valid PGN? What arguments are valid in the header? What values are mandatory, what can be omitted? Can I find somewhere rules for ...
0
votes
2answers
313 views

Where can I find a whole bunch of complicated PGN files?

I'm interested to test that the atom syntax highlighter for pgn files -- https://atom.io/packages/language-pgn -- can handle the full range of possible files. Is there a suite of difficult test files ...
2
votes
1answer
353 views

Watson's strategic chess pgn file

I am looking for the PGN file corresponding to Watson's strategic chess opening repertoire for white; is it available? If the PGN is not available, I would be interested to know what other opening ...
4
votes
2answers
989 views

PGN database with games of players with ELO 1000 - 2000

I do the research on a difference of players' behaviour on different levels. There is no problem to find games with players rated over 2000 ELO but I lack those below 2000. Does anybody know a source ...
-2
votes
1answer
146 views

How to add additional tags to an existing PGN?

Is there any software that would allow me to add additional PGN tags to existing PGN files? For example, PGN tags like WhiteTeam etc.
3
votes
1answer
209 views

pgn-extract suppress output

I installed pgn-extract_17.38 and want to suppress the output of $ FEN=$(echo "1.d4 Nf6 2.Nf3 e6 3. *" | pgn-extract -F) Processing stdin 1 game matched out of 1. I read about suppressing methods ...
4
votes
3answers
634 views

Deleting multiple games from a large PGN file

I have spent around half an hour searching Google and I have not found what I am looking for -perhaps I did recognise it as what I needed if I had come across it. I have just recently downloaded SCID ...
7
votes
2answers
2k views

Great Chess match resources (PGN) suggestions anyone?

Using Arena with a number of Chess engines, I love configuring Arena to use its 'book' feature. There are books of openings, books of famous games, books of particular players, surprise wins, etc. ...
2
votes
2answers
711 views

Where can I find a list of chess games (or PGN file) for games less than X number of moves (specifically 12 moves)?

I was reading a book on chess where the author suggested that a good way to practice getting good at the opening is look at miniature games (less than 12 moves specifically) played, that have led to ...
1
vote
2answers
145 views

software for a survey of chess openings

Is there any a free software or free pgn files that presents a survey of all openings and their variations (the deeper the best) similar to those found in chess opening references like MCO or ECO ? I ...
3
votes
2answers
111 views

How can we convert PGN format to Resource Description Framework (RDF)?

Is there any parser available in which we take PGN data as input and then convert it to RDF format? Has someone worked on this thing?
3
votes
2answers
475 views

Is there a Unicode-compatible alternative to PGN?

One of the problems with PGN is that it requires ASCII, while names of players often contain non-ASCII characters. (And of course, many names are not written in the Latin alphabet ...) The ...
1
vote
2answers
744 views

Delete annotations in pgn games

Using ChessBase 13, I saved a bunch of games in PGN format. Is there a simple way to suppress the comments of all annotated games? I would like to avoid doing it one by one.
1
vote
1answer
60 views

For team events, what is the correct way to record a player's team in PGN format?

More or less as the title. I'm helping transcribe some games for a team tournament that is happening, but I can't find any field in the software I'm using or even the PGN format specification for a '...
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?
4
votes
3answers
1k 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 ...
5
votes
1answer
810 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?
3
votes
1answer
108 views

Is there an Android viewer that understands international language comments in PGN?

I have a PGN file, in which I can view non-English (Cyrillic) comments on my PC in Chessbase or in Notepad++, but all Android apps (playchess, masterchess, scid on the go, droidfish) I tried instead ...