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.
158 questions
0
votes
1
answer
31
views
PGN extract questions
My main question is if I am using pgn extract along with pgn extract interface, how can I get standard games from a database that has bullet, and blitz games? I am very savvy with the command lines.
...
1
vote
0
answers
31
views
Chess FEN/EPD/PGN mirroring?
I am looking for a tool which is able to automatically convert a chess FEN/EPD/PGN file with 100+ positions into
a) a file with the same positions but different side to move, or
b) a file with the ...
3
votes
0
answers
38
views
How can I automatically annotate PGN games with ECO codes and opening names?
I have my chess repertoire in PGN format. It's composed of small separate games for each different variation, containing only the opening phase of each game. I want to insert the name of the opening ...
1
vote
1
answer
40
views
Using Pgn extract through command prompt
I have one pgn file with merged variation and I would like to use pgn extract to make many pgn files splitting all the variations within the pgn files as games. The command that I am using in the ...
1
vote
0
answers
104
views
Convert ctg book to pgn
Is there a way to convert ctg files to pgn?
If so, is it possible to export by selecting the green lines for a certain side?
1
vote
1
answer
110
views
How to use Extract pgn
I have a pgn file with a lot of Grunfeld variations(called game2.pgn) and I would like to separate them all in different pgn files. I've tried but I don't understand very well the instructions.
0
votes
1
answer
115
views
Python program for extracting games from PGN file based on tags (MacOS)
I would like to create a python script to extract games from a PGN file that is compressed using .pgn.zst, like the lichess.org database.
For example, one of the files is around 32GB compressed, and ...
2
votes
1
answer
81
views
Tool for training opening moves
I have a PGN with the best moves against common opening traps. I'd like to train my memory and use an app/website.
The idea is that computer chooses a random line on the PGN and I have to remember ...
2
votes
1
answer
602
views
is it possible to download pgn from view.livechesscloud links
DGT broadcasts are hosted on links that start with view.livechesscloud https://view.livechesscloud.com/#0ae3ada0-034b-4144-afc7-89257d74f7da. This shows the boards and times in real time but there is ...
2
votes
1
answer
187
views
How to extract games occurring only once from PGN file(s)?
I am trying to use pgn-extract to extract games that exist exactly once in two PGN files. I thought the following would work:
pgn-extract -U a.pgn b.pgn -o/dev/null -nonly_once.pgn
but it simply ...
1
vote
2
answers
137
views
How to add engine evaluation to a pgn file?
I have pgn file of thousands of game, with the clock only, every move have comment like this, this is a pgn file downloaded from lichess:
{[%clk 0:10:00]}
I need to add engine eval to every move like ...
1
vote
1
answer
78
views
How to put some text in bold in a pgn file
AS the title say, I'm trying to put some text in bold in a pgn of a study and Have no solution
3
votes
1
answer
190
views
Edit and save pgn files with SCID
In SCID, how can I edit a pgn file and save to a new file after I modified it?
For example below, I have deleted some games in the 'game list' panel. But when I do Database - Export all filter games, ...
1
vote
0
answers
58
views
How to easily find out which games in pgn database were already analysed/processed
Which software (ideally free/open source (maybe Scid or Chessx) gives the possibility to easily see on the list of games (in PGN) which has: alternative moves or comments added?
Basically what I need ...
0
votes
0
answers
102
views
PGN viewer for large databases?
What are some of the PGN viewers available for viewing/saving/editing a large number of chess games (more than 5k games)?
I am aware of chessbase. What are the other available options?
0
votes
2
answers
442
views
how to download pgn of a chess.com game by game ID programmatically
Every chess.com game has a game ID. For example https://www.chess.com/game/live/2485075845 2485075845 is the game ID. When you go to this URL it is possible to download the PGN by clicking the share ...
4
votes
3
answers
928
views
Is there any program which I can use to train custom tactics puzzles?
Essentially, I would like to have the following features/workflow:
I obtain a .pgn file with (puzzle) positions and moves (the solutions)
I load that .pgn into the program and then solve (...
1
vote
1
answer
212
views
List specific moves from a pgn file using python chess.pgn
Using python chess, I would like to be able to list specific moves from a pgn string. For instance, in this string:
c4 e5 2. g3 c6 ( 2... d5 3. cxd5 ) 3. Nf3 e4 4. Nd4 d5 5. cxd5 Qxd5 6. Nc2 ( 6. e3 )...
17
votes
3
answers
2k
views
Does move disambiguation happen before or after legality checking?
I am wondering if disambiguation occurs before or after the legality of such moves has been established. Given this position:
[FEN "5k2/5n2/3R4/1n6/8/5Q2/8/4K3 b - - 0 1"]
Both knights are ...
6
votes
2
answers
1k
views
What are the *musts* of PGN?
Is the result of a game a (the) must at the end of every PGN?
(I mean any of "1-0", "0-1", "1/2-1/2", and "*")
So... we can have a whole set of tags, then a &...
1
vote
1
answer
232
views
Split pgn files by players
Is there a way to split large PGN files into folders grouped by the players?
For example, in a tournament, each player has several games in one file.
I aim to group each game by players to the ...
0
votes
2
answers
182
views
Is there a list of chess openings online without names
I have been searching for a list of eco (Encyclopaedia of Chess Openings) chess openings online by moves rather than by name so that I don't have to sort through thousands of names but I can not find ...
2
votes
3
answers
532
views
How to turn the PGN of opening into a image?
Does anyone here knows how to turn a PGN, let's say for example
1.e4 c5 2.Nf3 ( 2.c3 Nf6 ( 2...f6 3.Na3 ) 3.e5 Nd5 ) Nc6 3.d4 cxd4 4.Nxd4 ( 4.c3 ) g6
into an image? I preferably would like to put ...
1
vote
1
answer
332
views
Problems importing pgn to Lichess from chess.com and/or chessbase
[I'm writing this question so I can answer it for anyone who faces a similar problem in the future]
I am having trouble importing pgn files of my games from chess.com and from chessbase into a Lichess ...
5
votes
2
answers
1k
views
How to run lichess stockfish analysis locally?
I am working on a research project where we need to run stockfish on hundreds of thousands of pgns we have collected. We need to extract all information generated from stockfish like centipawns, ...
2
votes
1
answer
211
views
PGN viewer where you can copy and paste lines and subtrees?
Is there any PGN viewer out there that allows you to copy and paste lines and subtrees?
I've looked at Scid and ChessX and a few other PGN viewers, but none seem to allow you to copy and paste parts ...
1
vote
1
answer
204
views
pgn-extract: specify variation name when using --splitvariants flag
I'm using the --splitvariants flag to generate cards for anki, my problem is, how can i identify which line i'm playing? I though pgn-extract would have something like this, what i need is some way to ...
8
votes
2
answers
1k
views
Where can I get PGNs of FIDE rated tournaments?
FIDE requires tournament organizers of high level tournaments (basically tournaments which are strong enough that norms can be won) to submit the pgn files of games played in the tournament to FIDE. ...
1
vote
0
answers
407
views
Is there a way to convert a .cbh file to PGN without a GUI?
I want to convert a .cbh file to PGN (or whatever format meta information (elo, player, score, etc) from which I can eventually convert to dataframe/json/anything easy to work with).
The most popular ...
3
votes
3
answers
294
views
Adding "summary" comments to an analysis
When I analyze my chess games for studying, I like to write a high level summary or action items.
For example, a summary of a game might include some positive feedback for myself, as well as ...
-2
votes
4
answers
284
views
How to convert scid.eco file in scid _vs _pc to pgn file
Is there any tool or option in scid_vs_pc to convert the scid.eco file in bin/data directory to useful pgn file there is some code in gethub named eco2pgn.py but i cant figure out how to use it
1
vote
1
answer
154
views
PGN Header Edit
Anyone aware of a way to do a mass edit of the header in a pgn file that has multiple games?
Currently I've tried using pgn-extract and the line I have tried is:
pgn-extract -C -N -V -newfile.pgn ...
6
votes
4
answers
2k
views
Export all of my played games from chess.com
How can I export all my games played on chess.com?
For example to import to another program for analysis.
Exporting from the chess.com games list only shows the most recent 50 games.
3
votes
1
answer
306
views
How does PGN indicate null moves?
How are null moves indicated in PGN which Lucas Chess will correctly interpret?
Context: I want to make PGN files of solution lines of series problems, in order to replay them in Lucas Chess. In ...
0
votes
1
answer
334
views
Is there a tool to convert the lines from a pgn file to figurine notation?
I need a tool to convert the lines from a pgn file to figurine notation. to paste later in a word processor, any suggestions?
2
votes
2
answers
738
views
What is a good PGN software for dealing with buggy PGN files?
I'm scanning old club zines. Apart from a colleague of mine who has the habit of hübnering up nested annotations with a mix of {[()]} (if done correctly, this should be no problem for PGN standard, ...
3
votes
1
answer
158
views
Swiss bye in PGN
Not that it is of earth-shattering importance, but how is a Swiss bye entered in the Result header by default? 1-0? +? +-? +--? Is it different from a forfeit? (The latter can be additionally ...
3
votes
3
answers
824
views
How to find the piece to move when reading PGN file
I want to read a PGN file and play those moves on my chess application. For example, the PGN structure that I have to read looks like this:
1. e4 {[%clk 0:01:00]} 1... g6 {[%clk 0:01:00]}
2. e5 {[%...
8
votes
2
answers
841
views
Am I misunderstanding the --materialz option on pgn-extract, or is it not quite working right?
I ran the following pgn extract command
pgn-extract --materialz "n3+q*r*b*p* n2+q*r*b*p*" --output knights.pgn db.pgn
I expected this to find games where at some point in the game, one side ...
1
vote
2
answers
508
views
Is there a way to extract the position from a live chess game while it's happening in chess.com?
I would like to make something that has the capability to convert a chess game in chess.com to a text-to-speech output (for example to play blindfolded.) I know this has been made before, but I'm not ...
4
votes
1
answer
1k
views
Using pgn-extract to output FEN + evaluation
I'm using pgn-extract to convert a PGN database into FEN + evaluations. My goal is something like this:
1. e4 e6 2. d4 b6 3. a3 Bb7
Into this:
rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 ...
7
votes
1
answer
341
views
Filter PGN for games for one sided openings
I want to filter a PGN database for games where one side plays a series of moves but I don't care what the other side does during that sequence. For example the bongcloud is where one side plays 1. e3 ...
1
vote
1
answer
85
views
pgnscid error message
I have been downloading zip files from "The Week In Chess"'s site and converting them to a scid database. I get quite a few Error reading move in game...: O-O errors. It appears that ...
7
votes
1
answer
333
views
Bronstein timing in DGT clocks and the related PGN
I have noticed a gap in the PGN spec and the Laws of Chess in section 6.2.2
The time saved by a player during one period is added to his time available for the next period, except in the ‘time delay’ ...
3
votes
3
answers
3k
views
App which transforms chess moves into chess positions
I am interested is there an app which transforms written moves into chesd position? In other words, if I paste written chess game (for example 1. c3 d5 2. d4 Nf6 3. Nf3 Bg4 4. e3 e6 5. Be2 Be7 6. Ne5 ...
7
votes
2
answers
492
views
Where to download fischer random games?
Where can I download the PGN files for the World Chess 960 championship from 2019, that was won by Wesley So?
I can view the games on the website e.g, https://www.frchess.com/stream but I want to ...
5
votes
2
answers
6k
views
Quick method for generating FEN strings from PGN using Python Chess
Is there a fast way to generate FEN strings for every move in a PGN?
I'm generating an opening book using the Lichess elite database and Python Chess, but Python Chess is taking a surprisingly long ...
1
vote
1
answer
498
views
Where can I download chess games from a specific position into a PGN file?
Is there a website that will let me search for master-level games from a specific chess position and download them into a PGN file for free?
5
votes
1
answer
8k
views
Looking for polyglot opening books
I understand the Polyglot opening format is open source, but I can't find available opening books for polyglot. I'm looking to use a book to automatically identify (and exclude) opening moves from a ...
0
votes
2
answers
3k
views
How to merge multiple pgn files?
Merging two pgn files is an operation, that makes just one game variation, and the one of the game gets added as a variation to the other game. If both the games have similar opening, then the similar ...