Anki 2048 - Gamified Spaced Repetition
Transform your Anki review sessions into an engaging 2048-style puzzle game! This add-on combines the addictive gameplay of 2048 with the proven effectiveness of spaced repetition learning.
๐ฎ How It Works
-
Card-Based Tiles: Each tile represents Anki cards from your selected deck
-
Interval-Based Difficulty: Tiles are categorized by card review intervals:
- Tile 2: New cards (0 days)
- Tile 4: 1-2 day intervals
- Tile 8: 3-6 day intervals
- Tile 16: 7-14 day intervals
- Tile 32: 15-30 day intervals
- And so on up to Tile 2048: 961+ day intervals
-
Merge to Review: When you merge two tiles, you review the combined cards in a filtered deck
-
Success = Progress: Successfully answering all cards completes the merge and increases your score
-
Failure = Rollback: Any "Again" answer cancels the merge and returns the board to its previous state
โจ Key Features
๐ฏ Smart Card Management
- Single cards per tile by default (multi-card tiles only created through merging)
- Automatic card shuffling after failed reviews to prevent repetitive studying
- Progressive difficulty adjustment: more aggressive shuffling after consecutive failures
- Includes new cards, learning cards, and review cards
๐ฒ Enhanced Gameplay
- Multi-merge optimization: Review all cards from complex chain reactions in one session
- Persistent board state and high score tracking
- Deck selection with child deck support
- Real-time card availability tracking
๐ง Developer Tools
- Built-in debug console for troubleshooting
- Comprehensive logging system
- Flexible card bucketing system
๐ Getting Started
- Install the add-on from AnkiWeb
- Go to Tools โ Play Anki 2048
- Select a deck containing cards you want to review
- Use arrow keys to play - merge tiles by reviewing their cards!
- Try to reach the 2048 tile while maintaining your Anki review schedule
๐ฏ Perfect For
- Students who want to gamify their study sessions
- Language learners working through vocabulary decks
- Anyone looking to make Anki reviews more engaging
- Users with large card collections who want variety in their reviews
โ๏ธ System Requirements
- Anki Version: 2.1.50+ (tested up to 2.1.66)
- Platform: Windows, macOS, Linux
- Python: 3.8+ (bundled with Anki)
๐ง Compatibility
- PyQt5/PyQt6: Automatically detects and adapts to your Anki version
- Anki API: Uses modern scheduler and deck management APIs with fallbacks
- Deck Types: Works with all deck types including filtered decks as source material
๐ฎ Gameplay Tips
- Start with decks containing new cards for easier initial tiles
- Failed reviews shuffle cards automatically - don't get stuck on difficult cards!
- Use the "Refresh Cards" button if you run out of available cards
- Check the debug console if you encounter any issues
๐ Privacy & Data
- No data collection or external connections
- All processing happens locally within Anki
- Board state and high scores stored in Anki's add-on configuration
๐ Support
If you encounter issues, use the built-in debug console (Tools โ Anki 2048: Debug Console) to gather diagnostic information.
๐ Technical Details
File Structure
anki2048/
โโโ __init__.py # Entry point and menu integration
โโโ game_window.py # Main game UI and logic
โโโ integrations.py # Anki deck/card integration
โโโ review.py # Review session management
โโโ util.py # Configuration utilities
โโโ debug.py # Debug console
โโโ manifest.json # Add-on metadata
โโโ README.md # This file
Card Tier Mapping
TIER_RANGES = {
2: (0, 0), # New cards (type=0 or type=1 with ivl=0)
4: (1, 2), # 1-2 days
8: (3, 6), # 3-6 days
16: (7, 14), # 7-14 days (1-2 weeks)
32: (15, 30), # 15-30 days (2 weeks - 1 month)
64: (31, 60), # 31-60 days (1-2 months)
128: (61, 120), # 61-120 days (2-4 months)
256: (121, 240), # 121-240 days (4-8 months)
512: (241, 480), # 241-480 days (8-16 months)
1024: (481, 960), # 481-960 days (16 months - 2.6 years)
2048: (961, 3840), # 961-3840 days (2.6-10.5 years)
}
๐ Version History
v1.0.1 (August 2025)
- Fix: Deck ordering on newer Anki versions. Updated deck listing to use
deck.id/deck.name from all_names_and_ids() to ensure consistent order.
- Fix: Board layout spacing on some Qt6 systems. The grid now uses fixed tile size and uniform gaps (centered board) to prevent uneven column widths.
v1.0.0 (August 2025)
- Initial release
- Core 2048 gameplay with Anki integration
- Support for new cards, learning cards, and review cards
- Single-card tiles by default
- Multi-merge optimization
- Automatic card shuffling after failures
- Progressive difficulty adjustment
- Debug console and comprehensive logging
Version: 1.0.1
Last Updated: August 2025
License: Open Source
Turn your daily Anki reviews into an exciting puzzle adventure! ๐ฏ๐ฎ