Lesson Block · Detail
Coffee Slalom
They promote skills in variables, conditions, and if-statements with random values. The block is didactically relevant as it exercises decision-making in dynamic scenarios.

Introduction (Original Excerpt)
Linus Lag can't get going without coffee. But be careful: more than 500 ml and his head is racing.
Didactic Classification
Subjective Objective
The block introduces concepts like variables for sum storage, conditions for boundary checks, and if-statements. It requires a structured modeling of the slalom path through the cafeteria with navigation and interaction. The connection between modeled logic and programming implementation ensures that students implement decision-making concretely.
Competence Development
- Working with variables to accumulate values (total).
- Implementing conditional statements (if-statements).
- Handling random values in interactions.
- Navigation and Loop Logic through Movements.
- Checking Boundary Values before Actions.
- Decision Making based on Cumulative States.
Didactic Value in the Classroom
- Structured Progression from Navigation to Conditional Logic.
- Clear Task Assignment with a Concrete Scenario.
- Promoting Systematic Thinking through Step-by-Step Evaluations.
- Transparent Goal Orientation exactly 500 ml.
- Support for Differentiation through Variable Random Values.
Flow of the Lesson Unit
Not too much Coffee
You control the robot to all coffee cups, read quantities and check with If-conditions whether drinking is possible. This step integrates navigation, interaction, and logic in the overall process. It closes the building block by centralizing the boundary check.
- Didactic Focus: Conditional Decisions with Sums.
- Typical Challenge: Correct Sequence of Evaluation and Accumulation.
Work Assignment (Excerpt)
- Control all cups and read the quantity.
- Build an If-condition that checks whether drinking is still allowed.
- Only empty the cup if total + value < is maximum.
Example (Excerpt)
This fragment shows the core logic of the boundary check and makes the If-query with variables didactically tangible.
| |
Hints for Classroom Practice
- Time Planning: 10 Min. Exploration, 5 Min. Error Search.
- Differences in difficulty: Easier paths for beginners, more cups for advanced learners.
- Result assurance: Observe correct sums and stop decisions.
- Possible extensions: Vary the maximum limit or add loops.
- Link to further topics: Transition to loops or functions.
You benefit from a clear task structure, which simplifies lesson organization and enables result assurance. Differentiation succeeds through adjustable random values.
Request a demo access and try the module in your course context.