Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
/ pgn2anki Public archive

Create Anki deck from PGN files or game links.

License

Notifications You must be signed in to change notification settings

menisadi/pgn2anki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Project Archived

This project has been archived due to Anki dropping support for FEN notation viewing, which was a core feature of this project. Without this support, the intended functionality and utility of the project are no longer feasible.



Pgn -> Anki

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 -m src.pgn2anki game_file.pgn

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

python -m src.pgn2anki 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

About

Create Anki deck from PGN files or game links.

Resources

License

Stars

Watchers

Forks

Packages

No packages published