Starting…

Backgammon flashcards for Anki, in your browser

Open a match file, or drop one anywhere here: eXtreme Gammon .xg and .xgp, HedgeHog .ogxm, or a .mat, .sgf or .txt match for HedgeHog to analyze. A match keeps only the mistakes above your thresholds.

  1. Downloading Python for your browser
  2. Loading AnkiGammon

The first visit downloads about 7 MB. Your browser keeps it, so next time starts faster.

Analysis by HedgeHog. Position IDs and .mat, .sgf or .txt files are analyzed on HedgeHog with your own HedgeHog account, score matrices included. The free plan comes with a few analyses a day.

To analyze with GNU Backgammon or eXtreme Gammon on your own computer, get the desktop app.

Card options

Deck

Cards

Paste positions

Could not reach Anki.

  • Anki is open on this computer.
  • AnkiConnect is installed: in Anki, Tools → Add-ons → Get Add-ons, code 2055492159, then restart Anki.
  • If the browser asked whether this site may reach apps on your device, you allowed it. If you dismissed it, allow it in the site settings next to the address bar.
  • If Anki asked whether to give this site access, you answered Yes. To fix a No, open Tools → Add-ons → AnkiConnect → Config in Anki, add to webCorsOriginList, and remove it from ignoreOriginList.
  • Safari and iPhone or iPad browsers can't connect to Anki. Use Download .apkg instead.
  • Using a different port for AnkiConnect? Change the address in Card options.
  • Enter the key under Anki connection in Card options, then send again.
  • Check that Anki isn't busy with a dialog, then send again. Cards already sent stay in Anki and are updated, not duplicated.

Browser or desktop?

Both make the same cards. The browser version needs no install and works on a phone or tablet. It has no analysis engine of its own: it reads analysis done in eXtreme Gammon or HedgeHog, and sends anything else to HedgeHog to analyze with your HedgeHog account.

BrowserDesktop app
InstallNoneDownload for Windows, macOS or Linux
eXtreme Gammon .xg and .xgp filesYesYes
Analysis copied from eXtreme GammonYesYes
HedgeHog .ogxm filesYesYes
Position IDs (XGID, GNUID, OGID)Yes, analyzed by HedgeHogYes, analyzed with GNU Backgammon, eXtreme Gammon or HedgeHog
.mat, .sgf and .txt match filesYes, analyzed by HedgeHogYes
Score matrix and cube comparisonsYes, with HedgeHogYes
Your own notes on cardsNotes written in XG or HedgeHogNotes written in XG or HedgeHog, or add your own
Getting cards into Anki.apkg, or straight into Anki with AnkiConnect (Chrome, Edge, Firefox).apkg, or straight into Anki with AnkiConnect
Decks organized in a tree, saved collectionsNoYes

Download the desktop app: it is free, and analyzes with GNU Backgammon (free), eXtreme Gammon or HedgeHog.

Analysis by HedgeHog

HedgeHog is a backgammon engine that analyzes on its own servers, and AnkiGammon works with it for everything that arrives without analysis: position IDs, .mat, .sgf and .txt match files, and the score matrices on the card back.

  • Connect once: click Connect HedgeHog on the start screen, or HedgeHog at the top of the app and then Connect HedgeHog. A HedgeHog window opens; sign in or create an account and click Allow. AnkiGammon never sees your password, and stays connected in this browser until you disconnect, or after 30 days without use.
  • Your plan, your analyses: every analysis counts toward your own HedgeHog plan. The free plan has a small daily allowance, and AnkiGammon asks before a run would use more than you have left. Paid plans add deeper levels and rollouts.
  • Depth and matrices: choose the analysis depth and turn score matrices on in the same HedgeHog settings.
  • Disconnect there too, or under Connected apps in your HedgeHog account.

Getting analysis out of eXtreme Gammon

  • A whole match: analyze it in XG, save it, and open or drop the .xg file in the app above. Pick the error thresholds and which player's mistakes to keep.
  • One position: save it as an .xgp file, or analyze it, press Ctrl+C in XG and paste the text into the app above.
  • Comments you typed in XG come along and appear on the back of the card.

Frequently asked questions

Is my file uploaded anywhere?

Files that already carry analysis (.xg, .xgp, .ogxm, pasted XG analysis) stay on your device: the page downloads Python and AnkiGammon into your browser once, then builds the deck there. Only with HedgeHog connected does anything go out: a match file without analysis is saved to your HedgeHog account, like one you upload there; pasted positions, and the positions score matrices and the cube comparison need, are sent to HedgeHog to analyze.

How does it analyze position IDs and .mat files?

With HedgeHog, a backgammon engine that runs on its own servers. Connect your HedgeHog account under Card options: a HedgeHog window opens, you sign in and click Allow, and AnkiGammon never sees your password. Analyses count toward your HedgeHog plan; the free plan has a small daily allowance.

Are these the same cards as the desktop app makes?

Yes. The browser runs the same AnkiGammon code as the desktop app, so the cards look and work the same.

How does Send to Anki work?

With Anki and the AnkiConnect add-on running, the page sends the cards to Anki on your computer. The first time, Anki asks whether to allow this site, and Chrome, Edge or Firefox may ask whether the site can reach apps on your device; say yes to both. Allowing the site lets it change your Anki collection, which is why Anki asks. Safari and iPhone or iPad browsers block this, so use Download .apkg there.

How do I import the downloaded deck?

In Anki on a computer, choose File → Import or double-click the file. In AnkiMobile or AnkiDroid, open the downloaded file and choose Anki. Importing a deck from this page again updates its cards instead of duplicating them.

Why does the first visit take a few seconds?

The page downloads about 7 MB: Python compiled for the browser, plus AnkiGammon. Your browser keeps it, so later visits start faster.

Support me