No description
  • TypeScript 86.8%
  • Shell 13.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
oliver.maklott 522e667d5d
All checks were successful
pack / pack (pull_request) Successful in 16s
pack / pack (push) Successful in 16s
Backdrop picture behind the game Code-Knacker, SDK 0.54, 1.1.0
Own SVG drawing in light and dark (games/code-knacker/assets/hintergrund{,-dunkel}.svg),
drawn by scripts/hintergruende.ts: a chest with a four-wheel combination lock, a desk with a sheet of guesses (rows of filled and empty dots) and a lamp. Sources in QUELLEN.md, a test
checks the pictures are fresh and listed; README notes the picture and
platform 0.54.

Non-picture changes:
- @aivopod/sdk 0.48.0 -> 0.54.0 (no build, type or test fixes needed).
- The view puts its text on a surface panel (var(--ap-surface) behind status, wheels, legend and table), so nothing stands on
  the picture when the frame is transparent (aivopod D456). No change to
  rules, actions or texts.
- @types/node as dev dependency and tsconfig types ["node"], so typecheck
  covers the generator and its test (as in other packs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:48:16 +00:00
.forgejo/workflows GS07: reward game code-knacker, four-digit lock with right place and elsewhere 2026-10-31 10:54:25 +00:00
.githooks GS07: reward game code-knacker, four-digit lock with right place and elsewhere 2026-10-31 10:54:25 +00:00
games/code-knacker Backdrop picture behind the game Code-Knacker, SDK 0.54, 1.1.0 2026-11-03 14:48:16 +00:00
locales GS07: reward game code-knacker, four-digit lock with right place and elsewhere 2026-10-31 10:54:25 +00:00
scripts Backdrop picture behind the game Code-Knacker, SDK 0.54, 1.1.0 2026-11-03 14:48:16 +00:00
.gitignore GS07: reward game code-knacker, four-digit lock with right place and elsewhere 2026-10-31 10:54:25 +00:00
.npmrc GS07: reward game code-knacker, four-digit lock with right place and elsewhere 2026-10-31 10:54:25 +00:00
LICENSE.md GS07: reward game code-knacker, four-digit lock with right place and elsewhere 2026-10-31 10:54:25 +00:00
package-lock.json Backdrop picture behind the game Code-Knacker, SDK 0.54, 1.1.0 2026-11-03 14:48:16 +00:00
package.json Backdrop picture behind the game Code-Knacker, SDK 0.54, 1.1.0 2026-11-03 14:48:16 +00:00
QUELLEN.md Backdrop picture behind the game Code-Knacker, SDK 0.54, 1.1.0 2026-11-03 14:48:16 +00:00
README.md Backdrop picture behind the game Code-Knacker, SDK 0.54, 1.1.0 2026-11-03 14:48:16 +00:00
tsconfig.json Backdrop picture behind the game Code-Knacker, SDK 0.54, 1.1.0 2026-11-03 14:48:16 +00:00

Code-Knacker

Spiele-Paket für Aivopod aus der Organisation aivopod-games: ein Belohnungsspiel, gemacht für das Challenge-Paket „Geheimschrift“ und passend zu jedem Kurs der Zielgruppen Kinder und Jugendliche.

Spiel Art Stufen
code-knacker – Code-Knacker Belohnung Normal (vier verschiedene Ziffern, 10 Versuche), Erweitert (Ziffern dürfen sich wiederholen, 8 Versuche)

Ein Zahlenschloss mit vier Ziffern. Nach jedem Versuch sagt das Schloss, wie viele Ziffern an der richtigen Stelle stehen (●) und wie viele vorkommen, aber woanders (○): als Symbol, Zahl und Satz, nie nur als Farbe. Je weniger Versuche, desto mehr Punkte (100 für jeden übrigen Versuch und 100 fürs Öffnen). Höchstens drei Minuten (Einstellung maxDurationSec, 1 bis 15 Minuten).

Bedienung: vier Räder mit Plus und Minus, auf einem Rad die Pfeiltasten oder gleich eine Ziffer tippen (springt zum nächsten Rad), Enter probiert. Dazu das Aktionsmenü der Plattform mit einem Feld für den ganzen Code. Jeder Versuch wird angesagt.

Ein Test beweist: Mit geschicktem Raten (Minimax über alle 5 040 Codes) ist jeder Code in Normal mit höchstens 7 Versuchen zu knacken.

Bild hinter dem Spiel (eigene Zeichnung, hell und dunkel, QUELLEN.md): eine Truhe mit einem Zahlenschloss aus vier Rädern, daneben ein Pult mit einem Blatt voller Versuche – Reihen aus vollen und leeren Punkten wie im Spiel. Ansicht und Versuche stehen auf einer eigenen Fläche.

Im Unterricht

Das Paket für die Schule anmelden (aivopod pack add code-knacker) und als Belohnung einer Zuweisung wählen, in „Geheimschrift“ für pin-probieren. Braucht Plattform 0.54.

Entwickeln

Braucht ein aivopod-CLI für Plattform 0.54 oder neuer.

npm install
aivopod pack test     # Determinismus, Einstellungen, Texte, Tastatur, Regeln, Löser
aivopod pack preview  # das Spiel ausprobieren (Seed, Stufe, Einstellungen, Log)
aivopod pack build    # bündeln, prüfen, Release-Archiv in dist/
node scripts/hintergruende.ts  # Hintergrundbild, hell und dunkel (QUELLEN.md)

Veröffentlichen: Die Version in package.json erhöhen und nach main bringen; die CI legt das Release v<version> an. Plattformen finden das Paket, wenn das Repo das Thema aivopod-pack hat und die Organisation (oder das Repo) als Quelle eingetragen ist.

Lizenz

Das Paket steht unter der Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2): Copyright 2026 Oliver Maklott (Belowtoxic e.U.). Nutzen, Ändern und Weitergeben sind für jeden Zweck erlaubt außer einem konkurrierenden kommerziellen Angebot; Unterricht, nicht-kommerzielle Bildung und Forschung ausdrücklich eingeschlossen. Zwei Jahre nach Erscheinen einer Version gilt für sie zusätzlich die Apache License 2.0. Hintergrund: aivopod-app docs/decisions.md, D287.