Practice items checked against the real robot engine over 200 seeds #8

Merged
oliver.maklott merged 1 commit from ueben-engine-tests into main 2026-10-21 10:54:04 +02:00

Adds committed tests that check every practice item of all six pools against the real game engine (@aivopod/welt from node_modules) over 200 seeds, replayed in-process inside aivopod pack test – no sandbox runs added (pruefeUeben(..., [0, 7, 123456]) stays as it is).

What testdaten/welt.ts (pruefeWelten) checks per item and seed:

  • predict – runs the step's code in its world (or, for static items, the code from the question in an open 12×12 world) and measures: end cell (default for cell answers), crystals, console output, how often a command is called (sol-wie-oft, sol-fragen, ver-wie-oft, ver-aussen-innen), row pattern (pix-muster), painted fields (pix-zaehlen, pix-funktion), shape (pix-form), direction (ret-wohin), and the cell of the first abbiegen() call (ret-erste-kurve, via a __melde() put into the function). The measured value must equal check.answer and richtig, falsch must differ.
  • match with code – sol-endlos (engine stops at its action limit = never ends), uo-tabelle (the task's situation built as a world), pix-zuordnen (first four painted fields of a row): the engine's mapping equals richtig.
  • edit / write / order – richtig passes the engine's bewerte in every world, falsch fails (unless the step also checks change, structure or indentation).
  • Predict/match items in words only (sen-if-else, sen-frage, uo-uebersetzen, ver-struktogramm, ver-for-oder-while, ret-befehle, ret-faelle) are listed with the reason; every other predict/match item must have a measurement.

Result: no wrong answer found, so no pool or lib change and no version bump. Mutation check (in a scratch copy): wrong first-turn cell, wrong shape, wrong count, a halting loop listed as endless, a wrong truth value and a falsch that solves the world are each caught.

npx tsc --noEmit and aivopod pack test green (199 tests, 60 of them new).

🤖 Generated with Claude Code

Adds committed tests that check every practice item of all six pools against the real game engine (`@aivopod/welt` from node_modules) over 200 seeds, replayed in-process inside `aivopod pack test` – no sandbox runs added (`pruefeUeben(..., [0, 7, 123456])` stays as it is). What `testdaten/welt.ts` (`pruefeWelten`) checks per item and seed: - **predict** – runs the step's code in its world (or, for static items, the code from the question in an open 12×12 world) and measures: end cell (default for cell answers), crystals, console output, how often a command is called (`sol-wie-oft`, `sol-fragen`, `ver-wie-oft`, `ver-aussen-innen`), row pattern (`pix-muster`), painted fields (`pix-zaehlen`, `pix-funktion`), shape (`pix-form`), direction (`ret-wohin`), and the cell of the first `abbiegen()` call (`ret-erste-kurve`, via a `__melde()` put into the function). The measured value must equal `check.answer` and `richtig`, `falsch` must differ. - **match with code** – `sol-endlos` (engine stops at its action limit = never ends), `uo-tabelle` (the task's situation built as a world), `pix-zuordnen` (first four painted fields of a row): the engine's mapping equals `richtig`. - **edit / write / order** – `richtig` passes the engine's `bewerte` in every world, `falsch` fails (unless the step also checks change, structure or indentation). - Predict/match items in words only (`sen-if-else`, `sen-frage`, `uo-uebersetzen`, `ver-struktogramm`, `ver-for-oder-while`, `ret-befehle`, `ret-faelle`) are listed with the reason; every other predict/match item must have a measurement. Result: no wrong answer found, so no pool or lib change and no version bump. Mutation check (in a scratch copy): wrong first-turn cell, wrong shape, wrong count, a halting loop listed as endless, a wrong truth value and a `falsch` that solves the world are each caught. `npx tsc --noEmit` and `aivopod pack test` green (199 tests, 60 of them new). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Practice items checked against the real robot engine over 200 seeds, without the sandbox
All checks were successful
pack / pack (pull_request) Successful in 42s
pack / pack (push) Successful in 39s
4651b79507
testdaten/welt.ts (pruefeWelten) loads @aivopod/welt from the pack's node_modules (the rules and
bewerte, as the SDK and the runner use them) and replays every practice item of every pool in
process: predict items run the step's code, or the code shown in the question in an open 12x12
world, and the item's measurement (end cell, crystals, output, how often a command runs, row
pattern, shape, painted fields, the cell of the first abbiegen() call) must equal the right
answer and not the wrong one; match items whose items are code (sol-endlos, uo-tabelle,
pix-zuordnen) are mapped by the engine; edit, write and order items: the right code solves every
world by the engine's check, the wrong code does not (unless change, structure or indentation is
checked too). Predict and match items without a run (words) are listed with the reason.
No wrong answer found; pruefeUeben(..., [0, 7, 123456]) unchanged, no new sandbox runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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!8
No description provided.