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.
- Downloading Python for your browser
- Loading AnkiGammon
The first visit downloads about 7 MB. Your browser keeps it, so next time starts faster.
No XG file at hand?
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.
Drop the match file to open it
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.
| Browser | Desktop app | |
|---|---|---|
| Install | None | Download for Windows, macOS or Linux |
| eXtreme Gammon .xg and .xgp files | Yes | Yes |
| Analysis copied from eXtreme Gammon | Yes | Yes |
| HedgeHog .ogxm files | Yes | Yes |
| Position IDs (XGID, GNUID, OGID) | Yes, analyzed by HedgeHog | Yes, analyzed with GNU Backgammon, eXtreme Gammon or HedgeHog |
| .mat, .sgf and .txt match files | Yes, analyzed by HedgeHog | Yes |
| Score matrix and cube comparisons | Yes, with HedgeHog | Yes |
| Your own notes on cards | Notes written in XG or HedgeHog | Notes 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 collections | No | Yes |
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.