Hot answers tagged

17

What you're looking for is software/website that allows you to load or import PGN files. The Lichess Analysis board, for example, supports exactly what you want: https://lichess.org/analysis -- below the board is a text area labelled "PGN", paste your moves in there and hit "Import PGN", and you can then navigate through your game. All ...


8

Yes, it's possible for a piece to need both the rank and file to distinguish it, although it's rare. For example: [FEN "8/1k6/8/8/5Q2/8/3Q1QK1/8 w - - 0 1"] 1.Qf2e3


7

@DM showed one possibility, which would also work with bishops (and on various other places on the board, with the three pieces at corners of a square). The only other option is with knights: [FEN "8/1k6/8/8/5N2/8/1N3NK1/8 w - - 0 1"] 1. Nf2d3


5

The goto site for downloadable pgns for regular chess is Mark Crowther's "The Week in Chess". The good news is that he also covers 960 or Fischer Random. This is TWIC's page for the World Fischer Random Chess Championship 2019. The link for the pgn files is here.


3

First, one thing to clear up, according to the Wikipedia article on Time control, Bronstein Delay is not exactly "time delay" from the Laws of Chess. With "time delay", the player's clock does not start ticking down until after a period of thinking time has elapsed. In Bronstein time, the clock ticks down immediately, so you can lose on ...


3

My own website has two pages where you can paste chess notation and view it on an interactive chessboard and then save it as a link to be bookmarked or generate an animated image showing the whole game from start to end: (1) old: https://www.apronus.com/chess/pgnviewer/ (2) new: https://www.apronus.com/chess/puzzle/editor.php (PGN import tab)


2

The app Lucas Chess has this functionality. It can import a PGN file (even one containing multiple games, in which case it puts up a spreadsheet-like window from which you can pick a game). But you don't even have to make a PGN file to contain your notation. Just "copy" (Ctrl-C) the text of your moves, and use Lucas Chess's "Paste PGN" ...


2

Python has a pgn parser as part of its chess library. https://python-chess.readthedocs.io/en/latest/


2

Parsing PGN string is quite straightforward, as you can simply follow the specification [Wikipedia alternative], and you can do it manually by processing it line by line. There are already existing libraries that do this, for example, since you are using PHP, this is one PGN parser in PHP: https://github.com/amyboyd/pgn-parser


2

A pgn file is simply a text file. If you change the ".txt" extension to ".pgn", you have a pgn file. Once it's in a txt file, it's well-known how to convert into the other two formats.


2

I don't understand what you meant by pgn split, but I once purchased a chess pgn book and it has all the games (312) in one pgn file. Now I need to split it into each chapter with exactly 12 games each. I searched over the internet and didn't manage to find anything helpful. So I wrote a python program to divide it into separate files. import os name = '...


2

I think the answer should be, that the format has to include the parentheses. So a draw offer in some PGN notation should look like: 1. e4 e5 (=) So black is offering a draw after his first move. See the example game at the end of section C that looks like: e4 e5 2. Nf3 Nf6 3. d4 exd4 4. e5 Ne4 5. Qxd4 d5 6. exd6e.p. Nxd6 7. Bg5 Nc6 8. Qe3+3 Be7 9. Nbd2 0-...


2

You can use 2 programs to do that. Use pgn-extract to format the pgn files in a good format. This pgn-extract is available at this url: download pgn-extract You need this CLI tool: UCI analyzer Lastly, you need a chess engine that supports UCI installed, such as Stockfish. I used these tools to perform a massive analysis of 2 million games on multiple ...


2

I found two sources for Polyglot opening books: Richard Pijl has released his opening book alongside The Baron 3.43, which he says is almost identical to the version that played in the 2018 WCCC. Read more about these here. Sourceforge claims to have a polyglot book collection for download here. The main page is here. EDIT: Found two more here. The ...


1

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 format. It is a compiled C program so likely to be significantly faster for this use case. For instance: pgn-extract --quiet -Wepd games.pgn Here are the ...


1

Sure - I imagine there are quite a few. Here's one: https://www.365chess.com/ Expand Resources, and click on Board Editor Clear the board, and set up whatever position you want. Make sure you state which side is to move, and whether castling is available still ... Below the board copy the FEN of the position Expand Search, and click on Game position ...


1

A piece of code that works perfectly for merging pgns is. https://github.com/permutationlock/merge-pgn The code is not regex heavy, thanks to python-chess library. It can merge several pgn games into a single pgn with one game including all moves as variations. All headers and comments are ignored as this is designed only to manipulate the move lines.


1

The Tarrasch Chess GUI is an open source, free Windows download. It uses a proprietary database format and the author approached Mark Crowther, the brains behind TWIC to ask if he could use Mark's database of games. Mark agreed but part of the way Mark makes his living is by selling his full database. There is an export to pgn format function in TCG but to ...


1

There can't be a standard here so you can choose your scoring system in the way is makes most sense for your particular case. I'm not sure what its intent really is so it might be different from what I have in mind. We can all agree on what a 100% score would look like, but what does it really mean to have a 50% or a 75% score? If it's intended as a training ...


1

From what I have found out from studying the PGN Specification, I think that the PGN spec allows to have the following: 5400/40+30:1800+30 Start with 90 minutes for the first 40 moves, add then another 30 minutes for the rest of the game. In both periods, use 30 seconds increment. So it would be possible to have different increments (for whatever reason) ...


1

The accepted answer does currently (2021) not work with the latest Scid versions. Bug? But it works with Scid vs PC: In Scid vs PC, open the PGN database which you want to sort (File → Open). Open the game list, if it is not visible already (Windows → Game List). Create an empty Scid database via File → New (make sure it is a *.si4 database, not a *.pgn ...


Only top voted, non community-wiki answers of a minimum length are eligible