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
3
votes
1answer
25 views

Building up a dataset for image recognition of hand-written scoresheets

I am trying to build up a training dataset to train a convolutional neural network (well, the pipeline will probably be a little more complex, but probably a CNN will be at its core) to convert ...
3
votes
1answer
48 views

How to watch PGN at different speeds?

I am looking for a program for Windows or an online service for viewing PGN at variable speed. I know that lichess has fast and slow speed, but I want more adjustable settings.
7
votes
2answers
804 views

Longest possible FEN

What is the longest possible FEN? The reason for that question is, that I am designing a PGN viewer (again), and I have noticed that the FEN is dependent on the width of the board (the FEN test area ...
10
votes
2answers
2k views

Two knights can move to e7, but the move is only specified as Ne7 [duplicate]

In the diagram below, Black makes the move denoted as “Ne7” which moves the black knight on g8 move to e7. [FEN "r1bqkbnr/pp3ppp/2n1p3/1BPpP3/8/4B3/PPP2PPP/RN1QK1NR b KQkq - 0 1"] 1... Ne7 The ...
6
votes
2answers
197 views

Creating a Opening Lines Book in ' tree-like' format

I came across this Opening tree graph question where a very elegant Opening tree as displayed. Is there a way I could make a personal opening book in this format? If yes, then which software should ...
1
vote
1answer
58 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 ...
4
votes
1answer
174 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
2k 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
60 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
41 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/...
2
votes
1answer
349 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 ...
8
votes
2answers
305 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
197 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 ...
2
votes
2answers
191 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
760 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
146 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
110 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
158 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
597 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
426 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
58 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 ...
1
vote
1answer
180 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
2
votes
3answers
938 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 ...
4
votes
1answer
198 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
169 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
116 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
286 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
259 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 ...
12
votes
4answers
14k views

Chess Problem Database with PGN or FEN

Is there a database of chess probpems that have the game or positions PGN and or FEN?
6
votes
1answer
266 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
298 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
3k 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'...
4
votes
1answer
790 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
788 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 ...
4
votes
1answer
1k 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 ...
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? ...
4
votes
2answers
462 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
332 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 ...
3
votes
1answer
373 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
1k 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
177 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
216 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
724 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
816 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
149 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
115 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?
4
votes
2answers
529 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 ...
0
votes
2answers
857 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.