Paste Any Position. Get Smart Study Cards.

Your backgammon analysis tool shows you the best move. AnkiGammon helps you remember it forever. Supports XG, GnuBG, and OpenGammon formats with automatic analysis, score matrices, and instant Anki export.

1 Launch the desktop application
2 Paste XG analysis or position IDs (XGID/OGID/GNUID)
3 Preview positions visually → Export to Anki
Free & Open Source Works Offline

Features

AnkiGammon combines visual board rendering with automatic analysis for effortless learning.

Live Board Preview

See positions rendered as scalable SVG boards in real-time. Choose from 6 color schemes and toggle between clockwise/counter-clockwise board orientation to match your learning style.

Automatic GnuBG Analysis

Paste position IDs without analysis and AnkiGammon automatically runs GnuBG to generate complete move and cube analysis. No manual rollout needed.

Score Matrix Generation

For cube decisions, AnkiGammon generates detailed score matrices showing equity at different match scores. Essential for understanding cube actions in tournament play.

One-Click Export

Cards appear in Anki instantly via AnkiConnect—no import step, no file management. Visual progress tracking with background workers keeps the interface responsive.

Interactive Move Visualization

Click moves in the analysis table to see resulting positions with smooth animations. A unique learning aid that brings positions to life.

Complete Analysis

Every card includes equity values, win/gammon/backgammon percentages, and error calculations for all candidate moves. Learn the why, not just the what.

How It Works

1

Launch the App

Double-click to open—ready to use instantly

2

Add Positions

Paste XG analysis or just position IDs (XGID/OGID/GNUID)—GnuBG automatically analyzes unanalyzed positions in the background

3

Preview & Manage

See live board previews with score matrices for cube decisions, manage your position list visually

4

Export to Anki

One click exports all positions—watch the progress bar as complete analysis cards are created

See It In Action

📹 Demo video or screenshots coming soon

Get Started

AnkiGammon is a desktop application developed for Windows. macOS and Linux support is experimental.

Windows
macOS
Linux

Windows (Recommended)

✓ Fully Supported: Pre-built application ready to use, automatic builds with every release.

  1. Download ankigammon-windows.zip from the latest release and extract it
  2. Double-click to launch (no installation needed)
  3. Add positions and configure settings visually
  4. Export directly to Anki with visual progress tracking!

Requirements

  • Anki 2.1.x installed
  • AnkiConnect addon (code: 2055492159)
  • Windows 10 or later
  • GnuBG (optional, for automatic analysis of position IDs)

No installation needed - just download and run.

macOS (Advanced Users Only)

⚠️ Experimental: AnkiGammon is developed for Windows. macOS support is experimental and requires building from source. No pre-built executables available.

  1. Install Python 3.8+: brew install python3
  2. Clone repository: git clone https://github.com/Deinonychus999/AnkiGammon.git
  3. Install dependencies: cd ankigammon && pip install -r requirements.txt
  4. Build: ./build_executable.sh
  5. Run: ./dist/ankigammon

Requirements

  • Python 3.8+ with pip and Git
  • Anki 2.1.x
  • AnkiConnect addon (2055492159)
  • GnuBG (optional, for automatic analysis)

Linux (Advanced Users Only)

⚠️ Experimental: AnkiGammon is developed for Windows. Linux support is experimental and requires building from source. No pre-built executables available.

  1. Install Python 3.8+: sudo apt install python3 python3-pip git
  2. Clone repository: git clone https://github.com/Deinonychus999/AnkiGammon.git
  3. Install dependencies: cd ankigammon && pip install -r requirements.txt
  4. Build: ./build_executable.sh
  5. Run: ./dist/ankigammon
  6. If errors occur: sudo apt install libxcb1

Requirements

  • Python 3.8+ with pip and Git
  • Anki 2.1.x
  • AnkiConnect addon (2055492159)
  • Ubuntu 20.04+ or equivalent
  • GnuBG (optional, for automatic analysis)

Installing AnkiConnect: Open Anki → Tools → Add-ons → Get Add-ons → Enter code: 2055492159 → Restart Anki

Frequently Asked Questions

Do I need XG analysis or can I just paste position IDs?

You can paste just position IDs (XGID, OGID, or GNUID format) without any analysis. AnkiGammon automatically runs GnuBG in the background to generate complete move and cube analysis. You can configure the analysis depth (0-4 ply) in settings. For cube decisions, it can even generate full score matrices showing equity at different match scores.

What is GNU Backgammon (GnuBG) and how do I install it?

What is GnuBG?
GNU Backgammon is a free, world-class backgammon engine that plays and analyzes at expert level. AnkiGammon uses it to automatically analyze positions when you paste just position IDs without analysis. It's completely optional but enables the automatic analysis feature.

Installation:

  • Windows: Download the installer (version 1.07) from ftp.gnu.org and run the .exe file.
  • macOS: Use Homebrew: brew install --cask gnubg
  • Linux: Install from your package manager: sudo apt install gnubg (Ubuntu/Debian) or sudo dnf install gnubg (Fedora)

Note: macOS and Linux package managers may install a different version than the Windows installer.

Once installed, AnkiGammon will automatically detect and use GnuBG for position analysis. You can configure the analysis depth (0-4 ply) in the settings.

Will this mess up my existing Anki decks?

No. AnkiGammon creates a separate deck (default name: "My AnkiGammon Deck") with no interference to existing cards. You can customize the deck name.

What's the difference between AnkiConnect and APKG export?

AnkiConnect (recommended): Cards appear instantly in Anki while it's running. No import step needed. Requires AnkiConnect addon.

APKG export: Creates a file you manually import into Anki. Useful when Anki isn't running or for sharing decks.

Can I customize the board appearance?

Yes. AnkiGammon offers 6 color schemes to match your preference: Classic (traditional brown/beige), Forest (green/brown), Ocean (blue/teal), Desert (tan/orange), Sunset (purple/orange), and Midnight (dark blue/purple). Your color scheme selection is saved and applied to all generated cards. You can change themes anytime in the settings.

Can I change the board orientation?

Yes. AnkiGammon supports both clockwise and counter-clockwise board orientation. The default counter-clockwise orientation (point 1 at bottom right) is standard, but you can switch to clockwise (point 1 at bottom left) in the Options menu. Your preference is saved and applied to all generated cards automatically.