GS10: game tresor, tresor-karten, lesson 3 #9

Merged
oliver.maklott merged 1 commit from gs10-tresor into dev 2026-10-31 14:30:37 +01:00

GS10 and part of GS11c.

  • Game tresor (kind: learning, tiers: normal, advanced, capabilities: camera, tickRate: 1): group word (three letters, never said again after it is set), room 1 XYIV → TUER (card 1B in two versions), room 2 counted secret → REGAL, room 3 number of card 3A (eight sets) + group word shifted by 4.
  • Lockout after wrongBeforeLockout wrong tries for lockoutSec ticks; validate refuses open while locked or while a card is missing. Config lockoutSec 0–120 (20), wrongBeforeLockout 2–5 (3), rooms 1–3 (3).
  • Score 3/2/1 by lockouts (games have no stars), metrics lockouts, tries.
  • Tests: game-kit checks, three ways to win, lockout and unlock in ticks, the same log replayed with clock entries gives the same state, an early open is refused in the replay, score 1 after two lockouts, lockoutSec: 0, card codes checked against the card texts.
  • View: wheels built once per room so focus survives the tick updates; no <form> – the game frame has no allow-forms, Chromium never fires submit (Same-Bits lens-escape-room has this bug: typing a card does nothing in Chromium). Wheels without the native look: WebKit painted them white in dark mode.
  • scripts/karten.mjs (from Same-Bits) draws 13 cards; all 13 QR codes decoded with jsQR. Sheet tresor-karten (8 sets), class flow stunde-3, teacher, emergency and offline flows, README.

Checked in pack preview: Chromium 900 px light, WebKit 320 px dark, through to the lockout countdown.

  • build, 95 tests, typecheck green

🤖 Generated with Claude Code

GS10 and part of GS11c. - Game `tresor` (`kind: learning`, `tiers: normal, advanced`, `capabilities: camera`, **`tickRate: 1`**): group word (three letters, never said again after it is set), room 1 XYIV → TUER (card 1B in two versions), room 2 counted secret → REGAL, room 3 number of card 3A (eight sets) + group word shifted by 4. - Lockout after `wrongBeforeLockout` wrong tries for `lockoutSec` ticks; `validate` refuses `open` while locked or while a card is missing. Config `lockoutSec` 0–120 (20), `wrongBeforeLockout` 2–5 (3), `rooms` 1–3 (3). - Score 3/2/1 by lockouts (games have no stars), metrics `lockouts`, `tries`. - Tests: game-kit checks, three ways to win, lockout and unlock in ticks, the same log replayed with clock entries gives the same state, an early `open` is refused in the replay, score 1 after two lockouts, `lockoutSec: 0`, card codes checked against the card texts. - View: wheels built once per room so focus survives the tick updates; no `<form>` – the game frame has no `allow-forms`, Chromium never fires `submit` (**Same-Bits lens-escape-room has this bug**: typing a card does nothing in Chromium). Wheels without the native look: WebKit painted them white in dark mode. - `scripts/karten.mjs` (from Same-Bits) draws 13 cards; all 13 QR codes decoded with jsQR. Sheet `tresor-karten` (8 sets), class flow `stunde-3`, teacher, emergency and offline flows, README. Checked in `pack preview`: Chromium 900 px light, WebKit 320 px dark, through to the lockout countdown. - [x] build, 95 tests, typecheck green 🤖 Generated with [Claude Code](https://claude.com/claude-code)
GS10: game tresor on the clock, cards with QR codes, lesson 3 (GS11c part)
All checks were successful
pack / pack (pull_request) Successful in 9s
pack / pack (push) Successful in 9s
6768b68bb0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4gDLtYkgEdqMMZTFBZ
oliver.maklott deleted branch gs10-tresor 2026-10-31 14:30:37 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aivopod-challenges/Geheimschrift!9
No description provided.