AnkiGames — Memory Flip & Line Match Study Games

AnkiWeb addon 96793788

Adds two deck-based study mini-games—Memory Flip matching face-down pairs and Line Match connecting fronts to backs—with configurable grids, timings, and optional due-card review.
AI-generated summary; may contain mistakes.

gamification

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
2 (👍 1 · 👎 1)
Updated
2026-02-27
Anki versions
2.1.1~
License
Not found (this does not mean that the addon has no license)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

stale

  • Last update or commit: 2026-02-27 (247 days before the snapshot).
  • Commits in the last year: 14.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-02-27
History across monthly snapshots

Loading…

Similar addons

Anki Dojo

Generates Japanese vocabulary cards from word lists, Kindle, or text files, adding pitch accent, definitions, and audio, plus mini games and an open API.

card-creationimportsync-integrationgamification

5 votes 38% approval 👍 4 · 👎 1 ⭐ 19 Anki 26.08~ Updated 2026-08-03

Description

AnkiGames adds two mini-game study modes to any Anki deck. Instead of standard review, drill your cards through interactive games — same content, more engaging format. Works with any deck and any note type with at least two fields.

To play: right-click any deck in the deck browser and select "Play AnkiGame".

MEMORY FLIP

Classic concentration game. Cards are placed face-down in a grid — flip two at a time to find matching front/back pairs from your deck. Wrong pair? They flip back. Complete all pairs to advance to the next batch. Tracks moves, time, and accuracy.

LINE MATCH

Two shuffled columns — fronts on the left, backs on the right. Click one from each side to connect them. Green line means correct and locked. Red flash means wrong, try again. Tracks accuracy across all attempts.

Works with any deck

Built for Anki 2.1.50+ (Qt6) — no compatibility issues

No external dependencies

Configurable grid size, pair count, and timing via built-in settings (Tools -> AnkiGames Settings)

Supports review queue mode (study only cards due today)

SOURCE Built by a French language learner who uses Anki daily and wanted these game modes for personal use.

README

AnkiGames

An Anki desktop add-on that adds mini-game study modes to any deck. Instead of the standard review flow, you can study your cards through interactive games that make drilling vocabulary more engaging.


Games

Memory Flip

A classic memory/concentration game. Cards are placed face-down in a grid. Flip two at a time — if the front and back of the same card match, they stay revealed. If not, they flip back. Complete all pairs to finish the batch and move on to the next.

Line Match

Two columns of cards are shown side by side — fronts on the left, backs on the right, both independently shuffled. Click one card from each side to draw a connection. A green line confirms a correct match. A red line flashes briefly for a wrong one. Match all pairs to advance.an


Installation

  1. Download or clone this repository.
  2. Copy the AnkiGames folder into your Anki add-ons directory:
    • Mac: ~/Library/Application Support/Anki2/addons21/
    • Windows: %APPDATA%\Anki2\addons21\
    • Linux: ~/.local/share/Anki2/addons21/
  3. Restart Anki.

How to Play

  1. Right-click any deck in the Anki deck browser.
  2. Select AnkiGames from the context menu.
  3. Choose a game mode and press Play!

Configuration

Edit config.json in the add-on folder to customize behaviour:

{
    "rows": 5,
    "cols": 4,
    "numberOfPairs": 6,
    "maxCards": 100,
    "flip_delay_ms": 600,
    "line_wrong_ms": 500,
    "useReviewQueue": false
}
Field Description
rows Grid rows for Memory Flip
cols Grid columns for Memory Flip
numberOfPairs Pairs per round in Line Match
maxCards Maximum cards to load from the deck (set to null for no limit)
flip_delay_ms How long wrong tiles stay flipped before turning back (ms)
line_wrong_ms How long the red line stays visible on a wrong match (ms)
useReviewQueue If true, only loads cards that are due for review today. If false, pulls from the entire deck

Project Structure

AnkiGames/
├── __init__.py          — Entry point, registers deck context menu hook
├── manifest.json        — Add-on metadata
├── config.json          — User-configurable settings
├── games/
│   ├── base_state.py    — Shared state machine logic (batch loading, move tracking)
│   ├── memory_flip.py   — Memory Flip game
│   ├── line_match.py    — Line Match game
│   └── utils.py         — Config loading, card loading, shared UI helpers
└── ui/
    └── game_selector.py — Game mode picker dialog

Technical Notes

  • Built with Python and PyQt6 via aqt.qt — Anki's official Qt abstraction layer.
  • All Qt classes are imported from aqt.qt to ensure compatibility across Anki versions.
  • Games run as maximised QDialog instances so they never interfere with Anki's main window or other add-ons.
  • The Line Match overlay canvas uses WA_TransparentForMouseEvents so lines render on top of labels without blocking clicks.
  • Card data is only accessed inside user-triggered functions, never at import time, following Anki's mw.col safety rules.

Requirements

  • Anki 23.10 or later
  • Python 3.10+
  • PyQt6 (bundled with Anki)