Skip to content
This repository was archived by the owner on Nov 7, 2026. It is now read-only.

Commit 6b8645d

Browse files
Web 0.13.11: Legende und Bausteine rechts in der PAP-Übung (#207)
Claude-Session: https://claude.ai/code/session_01Ugz28U3kz1Gn6VpW4ZHqDH Co-authored-by: Claude <noreply@anthropic.com>
1 parent ba230cb commit 6b8645d

24 files changed

Lines changed: 478 additions & 361 deletions

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The format is loosely inspired by Keep a Changelog.
88

99
### Added
1010

11+
- **Web 0.13.11, legend in the flowchart exercise:** the PAP block takes `legende: ja` and then shows the four symbols with their meaning (Start oder Ende, Anweisung, Verzweigung, Ein- oder Ausgabe) under the chart; lesson 1 step 8 „Übung: Kuchen backen als PAP“ uses it (de/en/pt). The prepared elements now stand in a column right of the chart (sticky while scrolling) instead of below it, and the chart is only as wide as its content, so on a laptop chart and elements fit on one screen.
1112
- **Web 0.13.10, build a flowchart yourself in lesson 1:** new lesson block `::: pap` („PAP bauen“): a flowchart with empty dashed places and the finished, labelled elements shuffled below; tap an element and then its place, or drag it there (mouse, pen, finger). „Prüfen“ marks right and wrong places, after a wrong try „Lösung zeigen“. Lesson 1 gets the new step „Übung: Kuchen backen als PAP“ (Ludwig bakes a cake: two loops, one output). Lesson 1 now introduces the English word **flowchart** for the PAP right at the start, and the quiz asks for it (de, pt).
1213
- **Web 0.13.9, flowchart in lesson 1 explained in more detail:** the old step „Andere Darstellungen: PAP und Pseudocode“ is now three steps. „Andere Darstellungen: Der PAP“ shows the tea Struktogramm again, then the same algorithm as PAP, its symbols and advantages (easy to read, flowcharts are used outside programming too). „Nachteile des PAP: Sprünge“ shows the tea example as a program with line numbers and GOTO, what goes wrong when one line is inserted, jumps out of loops and spaghetti code (Dijkstra moved here). „Pseudocode und Vergleich“ keeps pseudocode and the comparison. New checklist lines and a quiz question on GOTO; de/en/pt.
1314
- **Web 0.13.8, loop in lesson 1 is a „gekipptes L“:** lesson 1 no longer calls the loop shape in the Struktogramm a „Klammer links“ but a „gekipptes L“ (condition on top, strip on the left), in the text, the comparison and the quiz (en „upside-down L“, pt „L invertido“).

‎web/laptop2.png‎

122 KB
Loading

‎web/lessons/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ Für „Fehler finden“ eignet sich eine normale Übung mit `code: java`, deren
285285
Element und dann seinen Platz an oder zieht es hin. `start:`/`ende:` sind Ovale, `anweisung:` Rechtecke, `eingabe:`/
286286
`ausgabe:` Parallelogramme, `frage:` Rauten. Die Zeilen stehen von oben nach unten. Eine Frage braucht nach ` | ` ihren
287287
zweiten Ausgang: `nein -> Text` ist ein Pfeil zurück nach oben zum Element mit diesem Text, `nein: Text` eine Anweisung
288-
rechts daneben, von der ein Pfeil zurück zur Raute führt. Statt `nein` geht auch `ja`. Die Schlüsselwörter bleiben auch in
288+
rechts daneben, von der ein Pfeil zurück zur Raute führt. Statt `nein` geht auch `ja`. `legende: ja` zeigt unter dem Plan die vier Symbole mit
289+
ihrer Bedeutung. Die Schlüsselwörter bleiben auch in
289290
en/pt deutsch, die Beschriftung ja/nein kommt aus der Oberflächensprache.
290291

291292
```

‎web/lessons/de/01-was-ist-ein-struktogramm.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ anweisung: Kuchen herausnehmen
155155
ausgabe: „Der Kuchen ist fertig!“
156156
ende: Ende
157157
erklärung: Zwei Schleifen, zwei Pfeile zurück nach oben: Beim Rühren führt der Pfeil zurück zu „Teig rühren“, beim Backen von „5 Minuten weiterbacken“ zurück zur Frage. Die Ausgabe steht im Parallelogramm.
158+
legende: ja
158159
:::
159160

160161
## Nachteile des PAP: Sprünge

‎web/lessons/en/01-was-ist-ein-struktogramm.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ anweisung: Take the cake out
155155
ausgabe: “The cake is ready!”
156156
ende: End
157157
erklärung: Two loops, two arrows back up: when stirring, the arrow leads back to “Stir the batter”; when baking, it leads from “Bake 5 more minutes” back to the question. The output sits in the parallelogram.
158+
legende: ja
158159
:::
159160

160161
## Drawbacks of the flowchart: jumps

‎web/lessons/pt/01-was-ist-ein-struktogramm.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ anweisung: Tirar o bolo do forno
155155
ausgabe: “O bolo está pronto!”
156156
ende: Fim
157157
erklärung: Dois ciclos, duas setas para cima: ao mexer, a seta volta a “Mexer a massa”; ao cozer, vai de “Cozer mais 5 minutos” de volta à pergunta. A saída fica no paralelogramo.
158+
legende: ja
158159
:::
159160

160161
## Desvantagens do fluxograma: saltos

‎web/package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎web/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visustruct-web",
33
"private": true,
4-
"version": "0.13.10",
4+
"version": "0.13.11",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

‎web/src/i18n/de.strings‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,17 @@
101101
"web_learn_cloze_all_right" = "Alle Lücken richtig!";
102102
"web_learn_cloze_solution" = "Lösung zeigen";
103103
"web_learn_cloze_again" = "Nochmal";
104-
"web_learn_pap_hint" = "Tippe ein Element unten an und dann seinen Platz im Plan. Du kannst es auch hinziehen. Ein belegter Platz gibt sein Element beim Antippen zurück.";
104+
"web_learn_pap_hint" = "Tippe ein Element rechts an und dann seinen Platz im Plan. Du kannst es auch hinziehen. Ein belegter Platz gibt sein Element beim Antippen zurück.";
105105
"web_learn_pap_score_fmt" = "%d von %d Elementen richtig";
106106
"web_learn_pap_all_right" = "Alles richtig! Dein PAP ist fertig.";
107107
"web_learn_pap_missing_fmt" = "Es fehlen noch %d Elemente.";
108108
"web_learn_pap_empty" = "Leerer Platz";
109109
"web_learn_pap_yes" = "ja";
110110
"web_learn_pap_no" = "nein";
111+
"web_learn_pap_legend_oval" = "Start oder Ende";
112+
"web_learn_pap_legend_rect" = "Anweisung";
113+
"web_learn_pap_legend_diamond" = "Verzweigung: Frage mit ja und nein";
114+
"web_learn_pap_legend_para" = "Ein- oder Ausgabe";
111115
"web_learn_review" = "Nachlesen";
112116
"web_learn_terms" = "Fachbegriffe";
113117
"web_learn_resize" = "Breite des Lernbereichs ändern (Doppelklick: zurücksetzen)";

‎web/src/i18n/en.strings‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,17 @@
101101
"web_learn_cloze_all_right" = "All gaps correct!";
102102
"web_learn_cloze_solution" = "Show solution";
103103
"web_learn_cloze_again" = "Try again";
104-
"web_learn_pap_hint" = "Tap an element below and then its place in the chart. You can also drag it there. Tapping a filled place gives its element back.";
104+
"web_learn_pap_hint" = "Tap an element on the right and then its place in the chart. You can also drag it there. Tapping a filled place gives its element back.";
105105
"web_learn_pap_score_fmt" = "%d of %d elements correct";
106106
"web_learn_pap_all_right" = "All correct! Your flowchart is finished.";
107107
"web_learn_pap_missing_fmt" = "%d elements are still missing.";
108108
"web_learn_pap_empty" = "Empty place";
109109
"web_learn_pap_yes" = "yes";
110110
"web_learn_pap_no" = "no";
111+
"web_learn_pap_legend_oval" = "Start or end";
112+
"web_learn_pap_legend_rect" = "Statement";
113+
"web_learn_pap_legend_diamond" = "Decision: question with yes and no";
114+
"web_learn_pap_legend_para" = "Input or output";
111115
"web_learn_review" = "Review";
112116
"web_learn_terms" = "Technical terms";
113117
"web_learn_resize" = "Change the width of the learning area (double-click: reset)";

0 commit comments

Comments
 (0)