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

Latest commit

 

History

History
60 lines (48 loc) · 2.37 KB

README.md

File metadata and controls

60 lines (48 loc) · 2.37 KB

⚠️ 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