Skip to content

menisadi/pgn2anki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pgn -> Anki

In the making

GitHub last commit License: GPL v3 GitHub Release

Create Anki deck from PGN files or from ChessGames.com game's page.

Usage

To create a deck from a local PGN file type in the command line

python anki-pgn.py game_file.pgn

Or, to create a deck from a game's page on chessgames.com type in

python anki-pgn.py https://www.chessgames.com/perl/chessgame?gid=1234567

This will produce an Anki deck file in your local folder. The deck name is automatically set to the name of the players.

Import the file to Anki (mobile or web) to learn the game. Make sure that the FEN Visualizer plug-in is enabled. The Cards in the deck consist of two sides:

  1. Front: A position (including which turn is it)
  2. Back: The following move

Future plans

  • Option to pick color, so the cards will only ask for this color's turns.
  • Support sidelines.
  • Support Lichess and Chess.com links
  • Add GUI!
  • Documentation
  • Make available through pip

Libaries used in this script