Demos (Gruppe D): Image cb-web, Aufgaben d-10 Snake, d-11 Sonnensystem, d-12 Highscore auf eigener Lösung, Browser-Prüfung mit Screenshot und Checkliste, Aufgaben mit depends_on

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 13:53:14 +01:00
parent c8a24fd8b3
commit 8e5be1ed0b
34 changed files with 1125 additions and 30 deletions

10
tasks/D/d-11/check.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# Öffnet /work/index.html im Browser (ohne Netz) und arbeitet die Checkliste in check/check_task.py ab.
# Letzte Zeile ist JSON mit Score und Notiz. Screenshot und Bericht liegen danach in /checks/out.
cd /work || { echo '{"score": 0.0, "notes": "kein /work"}'; exit 0; }
python3 /checks/check_task.py 2>/tmp/check.err
status=$?
if [ $status -ne 0 ]; then
echo "{\"score\": 0.0, \"notes\": \"Prüfskript abgebrochen (Exit $status): $(tail -n 1 /tmp/check.err | tr '\"' "'" | cut -c1-160)\"}"
fi
exit 0