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
32 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 ...
2
votes
1answer
355 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 ...
3
votes
1answer
49 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
807 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 ...
5
votes
3answers
429 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 ...
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 ...
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: ...
6
votes
2answers
200 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 ...
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 ...
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?
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 ...
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
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?
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 ...
8
votes
4answers
976 views

Is there any website that generates and hosts board position with PGN as input?

Is there any website out there that takes PGN input and generates and hosts board positions (To show as image in the question or answer), till the time we get something like this done on this website ...
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/...
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 ...
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 ...
-2
votes
1answer
178 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.
14
votes
9answers
5k views

Tools for automated notation: webcam movie to PGN

Sometimes during blitz games over the board, or when in zeitnot, it gets very difficult to annotate them. I've seen several software / hardware to help in writing the notation, even one that's FIDE ...
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?
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
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 ...
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'...
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. ...
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 ...
9
votes
4answers
2k views

Is PGN split utility available anywhere?

A couple of places on the web mention a free utility called pgnsplit, that does the following: "A commandline tool to convert pgn-files including games with variation into pgn-files where each ...
4
votes
3answers
3k views

Reading PGN files using Stockfish engine

Is there a way to read a .PGN file using Stockfish engine? If there is can you please give a sample commmand? THanks
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. ...
3
votes
3answers
12k 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, ...
6
votes
2answers
602 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 ...
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 ...
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 ...
1
vote
1answer
181 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
16
votes
5answers
2k views

When and why was the notation changed from descriptive to algebraic?

When I was young I used to play chess with the the old form of notation KB (King Bishop square number), even books used to have the same notation, then later found that everyone was using algebraic, ...
2
votes
3answers
943 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
200 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 ...
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
1answer
793 views

How can I open (or convert into .PGN) old Chessmaster .CMG files, without Chessmaster?

I have many old chess games saved from Chessmaster 7000, 8000, and maybe even 9000. They are all saved in the Chessmaster .CMG file format. How can I access these games today? I would like to either ...
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
287 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
1answer
740 views

Is there any way to extract PGNs from a DGT live games presentation?

For example: http://www.budva2013.org/live/d/tfd.htm I have no particular interest in this tournament, but I often seen displays like this and wish to extract games without needing to type them out ...
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
798 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 ...
1
vote
6answers
7k views

How to save games in ChessBase reader?

I played a very interesting game today, and I entered it in ChessBase reader, along with some comments. I would love to save this game in a database (.cbh) or as a .pgn, but I don't know how. Can you ...