feat(core): add achievement module with 14 unlock conditions

Introduces AchievementContext (stats + last-win snapshot), AchievementDef,
ALL_ACHIEVEMENTS, and check_achievements. Adds undo_count to GameState
so the no_undo and speed_and_skill conditions are evaluable.

Skipped achievements that depend on features not yet built:
daily_devotee (progress), comeback (recycle counter), zen_winner (modes),
perfectionist (max-score calc). They land in later phases.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-04-24 12:50:46 -07:00
parent b9957909b1
commit 82fa584cbb
3 changed files with 324 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
pub mod achievement;
pub mod card;
pub mod deck;
pub mod error;