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
5
votes
2answers
178 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
66 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
695 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
70 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
84 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
136 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
292 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
289 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
45 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
139 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
669 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
153 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
159 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
99 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
248 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
217 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 ...
9
votes
4answers
10k 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
197 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
271 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
636 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
708 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
911 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
397 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
297 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
348 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
950 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
143 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
205 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
571 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
652 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
139 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
438 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
677 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
59 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
756 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
102 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 ...
6
votes
2answers
396 views

How to create PGN notation with wrong moves in it?

I was as chess trainer with some young guys on a tournament, and wrote down some of their games. In nearly every game, there were wrong moves in it: king is in check, but does not move or react; ...
4
votes
1answer
2k views

How do you convert a scid database into a pgn database?

So I got a big scid database and ScidvsMac. I would like to convert the complete database into a pgn database. So far I have only found out how to convert single games into pgn, something I'm not keen ...
6
votes
1answer
244 views

How to add draw offer to PGN?

Does PGN have any annotation for draw offer? Just adding = after a move doesn't seem to work everywhere. Among the standard NAGs there's $10 (drawish position or even) which translate as = or I can ...
2
votes
1answer
302 views

Extracting features from chessboard

So i am implementing an intelligent chess agent with the use of reinforcement learning.I intend to use Java. After reading the master thesis of H.Mannen i decided to use some of the features listed ...
0
votes
2answers
120 views

Layering multiple chess games

Does anyone know if an application exists where you can import multiple PGN files and layer them on top of one another? It would be interesting to upload say 1,000 games and somehow visualise the ...
4
votes
1answer
978 views

Where can I find free training tools like detailed annotated chess openings, middle games and endgames in the PGN format?

I have decided to study chess after playing it leisurely for a while. I looked at some online chess courses like the ones offered by Igor Smirnov at the Remote Chess Academy, but these options seem to ...
3
votes
3answers
10k views

Freely available PGN databases

I am looking for a relatively large PGN-formatted database (with at least 500k+ games), that is downloadable, with possibly the following properties: Simple formatted (no time indication after moves, ...