I04: challenge logik (&&, ||, !, loops in loops); 2.0.0 #4

Merged
oliver.maklott merged 1 commit from i04-logik into main 2026-10-04 16:26:41 +00:00

I04 (aivopod-app docs/PLAN-9.md, Plan 9): a challenge logik that javascript-und-die-website-2 needs (tastatur, quiz).

  • logik „Und, oder, nicht“ (icon merge), in the flow after datentypen:

    • normal: read &&/||/!, predict, repair || → && (one line), write istWochenende(tag) (a schreiben step on Normal, as the evaluation asks)
    • erweitert: && before ||, repair && → ||, write ungueltig(zahl) with ! (or without)
    • experte: a loop in a loop, count the rounds, a triangle of stars with one console.log
  • Tests for every check, with the typical mistakes (tag === "Samstag" || "Sonntag", ! only on the first comparison, forgotten return, text not reset per row).

  • Version 2.0.0, not 1.1.0 as PLAN-9 says: a new challenge requires a major version (compareManifests, Plan 3); aivopod pack build --previous with v1.0.0 accepts 2.0.0. Courses can move started modules only by minor/patch, so logik reaches running courses through a new assignment.

  • aivopod pack test green (123 tests), tsc --noEmit green, pack build --previous v1.0.0 green.

🤖 Generated with Claude Code

**I04** (aivopod-app docs/PLAN-9.md, Plan 9): a challenge `logik` that `javascript-und-die-website-2` needs (`tastatur`, `quiz`). - `logik` „Und, oder, nicht“ (icon `merge`), in the flow after `datentypen`: - normal: read `&&`/`||`/`!`, predict, repair `||` → `&&` (one line), write `istWochenende(tag)` (a `schreiben` step on Normal, as the evaluation asks) - erweitert: `&&` before `||`, repair `&&` → `||`, write `ungueltig(zahl)` with `!` (or without) - experte: a loop in a loop, count the rounds, a triangle of stars with one `console.log` - Tests for every check, with the typical mistakes (`tag === "Samstag" || "Sonntag"`, `!` only on the first comparison, forgotten `return`, text not reset per row). - **Version 2.0.0, not 1.1.0 as PLAN-9 says:** a new challenge requires a major version (`compareManifests`, Plan 3); `aivopod pack build --previous` with v1.0.0 accepts 2.0.0. Courses can move started modules only by minor/patch, so `logik` reaches running courses through a new assignment. - [x] `aivopod pack test` green (123 tests), `tsc --noEmit` green, `pack build --previous v1.0.0` green. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
I04: challenge logik – &&, ||, !, && before ||, loops in loops; 2.0.0 (a new challenge needs a major version)
All checks were successful
pack / pack (pull_request) Successful in 15s
pack / pack (push) Successful in 16s
363e8801fc
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/JavaScript-Grundlagen-2!4
No description provided.