Activity 01
Pair Programming: Game Decision Tree
Pairs sketch a decision tree on paper for a game where a sprite advances if score > 100 and energy > 30. They code nested IFs in Scratch, input test values, and swap to debug partner's code. Discuss improvements as a class.
Explain how nested 'if' statements allow for more detailed decision-making.
Facilitation TipDuring Pair Programming: Game Decision Tree, circulate and ask each pair to explain the first condition evaluated before moving to the nested one.
What to look forProvide students with a scenario: 'A character in a game can only use a special ability if their energy is above 75 AND they have collected at least 3 power-ups.' Ask them to write down the nested IF statement structure (using pseudocode or Scratch blocks) that would control this ability.