refactor(loldle): trim module to current behavior only

KV payload cleanup:
- drop lastResultAt from stats (never read)
- drop solved/giveup flags from game state (round is immediately
  replaced after finish, making the flags transient noise)
- skip redundant saveGame on winning/giveup/out-of-guesses paths;
  startFreshGame overwrites anyway

Code cleanup:
- delete daily.js + daily.test.js (pickDaily/todayUtc were speculative
  "future use" — only pickRandom was wired in, inlined into handlers)
- drop the dead switch default in compare.js
- trim file preambles across the module

Docs: rewrite README around current behavior with loldle.net as the
sole data source; update scraper header to match the raw schema.
This commit is contained in:
2026-04-22 13:49:38 +07:00
parent 8992424947
commit e1f7cdf645
12 changed files with 140 additions and 293 deletions
+1 -3
View File
@@ -42,9 +42,7 @@ jobs:
title: "data: weekly loldle.net champion refresh"
body: |
Automated weekly refresh of `src/modules/loldle/champions.json`
from loldle.net's JS bundle — the canonical source for all
classic-mode fields (`gender`, `species`, `resource`,
`attackType`, `region`, `lane`, `releaseDate`).
from loldle.net's JS bundle.
Review the diff, merge, then run `npm run deploy` to ship.
add-paths: src/modules/loldle/champions.json