Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
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.
12
votes
Is PGN split utility available anywhere?
As of 2017.04.01, pgn-extract (version 17-38) does provide variation splitting functionality via its --splitvariants flag. So, if you want this in a Windows/Linux/Mac OS environment it is available. … Disclosure: I am the author of pgn-extract. …
12
votes
Accepted
Am I misunderstanding the --materialz option on pgn-extract, or is it not quite working right?
This is a bug due to sloppy copy-and-paste of code on my part and failure to test games involving promotions. If you wish to apply the fix yourself to the source of v21-08 (and earlier) then in the fi …
5
votes
Accepted
Quick method for generating FEN strings from PGN using Python Chess
If you are not tied to using PythonChess and simply want FEN encodings of each position, you might like to consider using my free, open-source pgn-extract program with its -Wepd option to output in EPD … For instance:
pgn-extract --quiet -Wepd games.pgn
Here are the first few lines of its output for one of the games quoted in the OP:
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - c0 sandstorm00- …
4
votes
pgn-extract program troubleshoot
I am the author of pgn-extract. It would be easier to address the specifics of what you are trying to do via the personal email address included with the pgn-extract documentation. …
3
votes
Accepted
PGN Header Edit
You can do it with pgn-extract via a combination of the -R flag, to select the tags you want to retain (and their ordering), and the --xroster option to omit all those tags not listed in the roster file … For instance, if you want only White, Black and Result tags included with each game, place White, Black and Result (one per line) in a file called roster, say and then run pgn-extract as follows:
pgn-extract …
3
votes
Using Pgn extract through command prompt
The basic usage of --splitvariants is:
pgn-extract --splitvariants inputfile.pgn --output outputfile.pgn
Given the files you have named, you should use:
pgn-extract --splitvariants 2.pgn --output 3.pgn …
2
votes
Where can I find a whole bunch of complicated PGN files?
As an author of some PGN-processing software, I would also be interested in having access to a general test suite but I am not aware of any, unfortunately, and all I can offer is some advice based on experience …
1
vote
Accepted
pgn-extract suppress output
. *" | pgn-extract -F --quiet)
kentdjb (author of pgn-extract) …
1
vote
PGN-Extract output each game to a separate file with name like opponentA-opponentB.pgn
So:
pgn-extract -TpLeko --output Leko.pgn games.pgn
but there is not currently (2018.12.19) a way to have the file names generated automatically from the contents of the source file. …
1
vote
Accepted
Python program for extracting games from PGN file based on tags (MacOS)
You can pipe the output of the decompression program as input to pgn-extract and give pgn-extract a file of the tags you are interesting in matching. … It will then output matched games, in PGN format, to a file of your choosing. …
1
vote
How to use Extract pgn
One option would be to run pgn-extract with the -E3 option as that will separate games into individual files whose name would be D85.pgn, D86.pgn, etc. … \pgn-extract.exe -e -E3 game2.pgn
An alternative would be to create a separate file for each opening position you wish to match and then use pgn-extract with the -x flag. …
0
votes
Deleting multiple games from a large PGN file
For the specific requirement to filter out Chess960 games from a PGN file, you could use pgn-extract.pgn-extract home page Since such games necessarily include a SetUp tag, the --nosetup argument of pgn-extract … Disclosure: I am the author of pgn-extract. …
0
votes
How to convert scid.eco file in scid _vs _pc to pgn file
This is not a direct answer, but if you simply want a file of ECO data in PGN format then there is one freely available with pgn-extract on this page: https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract …