Inspiration
Most chess improvement advice stops at "don't blunder" — but players keep losing the same way, game after game. Blunder Graveyard started from that frustration: instead of reviewing one game and forgetting it, collect the moves that actually threw games away and drill them until they stay dead.
What it does
Import your public Lichess games (or use the bundled sample games, no account needed). A fresh, from-scratch deterministic chess engine (0x88 board, alpha-beta search, piece-square tables) scores every position; a move losing 200+ centipawns is a blunder, 100+ a mistake. An LLM explains why the move was bad and what to play instead, in English and Chinese (Groq API; template fallback without a key). From your blunder list, a spaced-repetition (SM-2) coach builds a personalised daily trainer.
How we built it
Built with Kiro CLI. Spec-driven development: .kiro/specs/blunder-analysis and .kiro/specs/trainer each define requirements, a design, and an implementation task list, and every source file traces back to those specs. The chess engine is pure Python, and the web UI is a single-page app with a small local HTTP server. The LLM coaching layer calls the Groq API; without a key it falls back to templates so the app stays usable.
Challenges we ran into
Writing a chess engine from scratch — move generation, 0x88 board representation, and alpha-beta search had to be correct before anything else could work. The Lichess API was also blocked in mainland China, which shaped the project: instead of depending on the live API, we shipped bundled sample games so the analysis and trainer work offline, and added a built-in PGN parser so a user can paste any game without relying on Lichess.
Accomplishments that we're proud of
A working local app that goes from real Lichess games to a prioritised blunder list, bilingual coaching and a trainer that tracks progress. Bundled sample games and an offline mode make the app demoable anywhere.
What we learned
Spec-first development keeps a small project honest: EARS requirements, a design, and a task list made it clear what "done" meant at each stage, and the app's architecture — engine, analysis, coaching, trainer — followed those specs.
What's next for Blunder Graveyard
Ship a hosted deployment so the app can be tried without a local run, and keep improving the analysis: more sample games, more blunder patterns, and deeper coaching.
Try it out
Live demo: https://blunder-graveyard.onrender.com
No login needed. Open the link, pick a bundled sample game (e.g. the Légal Trap), and the analysis runs instantly — no account, no API key. First load may take about a minute while the free host wakes from sleep.
Source code: https://github.com/tanfeiyang/blunder-graveyard
Local run: clone the repo, run python3 run.py, open http://localhost:8765
License
MIT — see LICENSE in the repository.