feat: implement game-like LU trainer and companion map

This commit is contained in:
nyan404 committed 2026-11-17 16:24:02 +03:00
1 parent 87d5a6720f
commit 74c8504d52
21 files changed
+1160 -14

No files matched your search

@@ -0,0 +1,18 @@
# LU trainer implementation plan
Spec: ../specs/2026-11-17-lu-trainer.md and root LU_TRAINER_PROJECT.md (owner requested implementation).
- [x] T1: Pure training engine and deterministic acceptance
goal: preserve documented training rules and hide unknown facts in public snapshots.
files: web/lu-trainer/engine.js, tests/lu-trainer/engine.test.mjs
acceptance: node --test tests/lu-trainer/engine.test.mjs
- [x] T2: Game screen, original art and synchronized companion map
goal: implement three-column forest training with accessible compact controls and dialogs.
files: web/lu-trainer.html, web/lu-trainer/style.css, web/lu-trainer/ui.js, web/lu-trainer/assets
acceptance: browser interaction suite and inspected renders at all four specified sizes, zoom, reduced motion, broken images.
- [x] T3: Routing, documentation and final review
goal: make page available through Python and gateway, document scope and checks, commit without push.
files: app/main.py, nginx.conf, web/index.html, tests/test_lu_trainer.py, tests/browser/lu-trainer.cjs, README.md, AGENTS.md, MEMORY.md, structure_and_data.md, project_mind_map.md, LU_TRAINER_PROJECT.md
acceptance: targeted HTTP tests, Nginx syntax/serving, JS syntax, diff check, spec/diff review; temporary environments cleaned.
Final review: approved root scope implemented. Spec compliance/consistency review resolved temporary hint disclosure and terminal controls. Source/diff review found and fixed overlapping hint expiry and result-inspection timer advancement. JS syntax, Python source compilation, 9 engine tests, 5 focused HTTP/calculator-page tests, Chromium acceptance and isolated Nginx syntax/alias/MIME checks passed. No runtime dependency, API, storage or production change. Check record and environment limits: root structure_and_data.md.