R2-05: review fixes – keyboard focus, !(alter() >= 14), clearer texts #13

Merged
oliver.maklott merged 1 commit from r2-05-review into dev 2026-11-02 00:41:41 +01:00

R2-05: fixes from the independent review of Roboterwelt-2 1.7 (games, sheets, flows).

  • Keyboard focus (medium-high): both views redraw their controls on every update, so focus fell back to the page after each action. games/focus.ts remembers the focused control by name and focuses it again. Checked in the preview (Chromium, keyboard only): Enter on „Hinein“ 3× stays on „Hinein“, adding a block stays on its button, ArrowDown on a question select twice stays on the select; no page errors
  • ! before the age (medium): !alter() >= 14 was wrong JavaScript; now shown as !(alter() >= 14) (same blocks, same count). New test: the shown code of all 1808 parsing rules up to six blocks is run as JS for all 16 kinds of guests and must decide like the game
  • E5 code: an exit behind a switch without a question carries // Weiche 3; teacher sheet explains it
  • Block names quoted in messages („Baustein 3 („)“) passt hier nicht hin.“)
  • Paper solution note in notfall-ablauf rewritten (no contradiction); „Bausteine“ on the teacher sheet; door cards: five or six guests at a time
  • Not changed: the pass messages name the question as code (Weiche 2 fragte istLang() – nein, also unten.) – this ties the run to the code beside the plan; noted as a decision
  • pack test 238 passed

The same sheet fixes go into Roboterwelt-2-lang's own ablauf-lehrperson/notfall-ablauf with its sync to v1.7.0-rc.1.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4gDLtYkgEdqMMZTFBZ

R2-05: fixes from the independent review of Roboterwelt-2 1.7 (games, sheets, flows). - [x] **Keyboard focus** (medium-high): both views redraw their controls on every update, so focus fell back to the page after each action. `games/focus.ts` remembers the focused control by name and focuses it again. Checked in the preview (Chromium, keyboard only): Enter on „Hinein“ 3× stays on „Hinein“, adding a block stays on its button, ArrowDown on a question select twice stays on the select; no page errors - [x] **`!` before the age** (medium): `!alter() >= 14` was wrong JavaScript; now shown as `!(alter() >= 14)` (same blocks, same count). New test: the shown code of all 1808 parsing rules up to six blocks is run as JS for all 16 kinds of guests and must decide like the game - [x] **E5 code**: an exit behind a switch without a question carries `// Weiche 3`; teacher sheet explains it - [x] Block names quoted in messages („Baustein 3 („)“) passt hier nicht hin.“) - [x] Paper solution note in `notfall-ablauf` rewritten (no contradiction); „Bausteine“ on the teacher sheet; door cards: five or six guests at a time - Not changed: the pass messages name the question as code (`Weiche 2 fragte istLang() – nein, also unten.`) – this ties the run to the code beside the plan; noted as a decision - [x] `pack test` 238 passed The same sheet fixes go into Roboterwelt-2-lang's own `ablauf-lehrperson`/`notfall-ablauf` with its sync to v1.7.0-rc.1. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4gDLtYkgEdqMMZTFBZ
R2-05: review fixes – keyboard focus, !(alter() >= 14), clearer texts
All checks were successful
pack / pack (pull_request) Successful in 37s
pack / pack (push) Successful in 36s
c57e716585
- both views keep the keyboard focus across redraws (games/focus.ts): after „Hinein“,
  a new block or a question picked with the arrow keys the same control is focused again
- Türsteher: `!` before the age block is shown as `!(alter() >= 14)`; a test runs the shown
  code of every rule of up to six blocks (1808) as JavaScript against the game's decision
- Weichenbahn: an exit behind a switch without a question names it in the code
  (`oben(); // Weiche 3`, E5)
- block names quoted in messages; teacher sheets: Bausteine, E5 explained, the paper
  solution note rewritten; door cards: five or six guests at a time

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4gDLtYkgEdqMMZTFBZ
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/Roboterwelt-2!13
No description provided.