Preparing to open. Classes are not open yet and no venue is secured. Scratch and Robotics are planned first. We will announce the date and location once confirmed. Register interest for launch updates; this is not enrollment.
Lesson / Scratch & Game Design
How Does a Game Decide?
The Quiz of Questionable Knowledge has received the answer 'moon cheese.' Its code must decide whether that is correct, give useful feedback, and move on without awarding seventeen points.
Program
Scratch & Game Design
Topic
Conditions and Decisions
Duration
90 minutes
Format
Guided Lesson
Lesson plan
Write the question
Turn one quiz rule into a question with a true or false answer.
Test both branches
Compare text and numbers, then run the true and false cases.
Build the quiz
Add questions, feedback, score, and question state.
Try awkward answers
Test capitals, wrong answers, and inputs that should not score twice.
Trace one decision
Demonstrate the condition and explain why its branch ran.
Learning goals
Write a rule as a true-or-false question.
Use if and if/else.
Compare text and numbers.
Resolve decisions that can overlap.
Explain why a particular branch ran.
Small examples
if answer = 'Ottawa'->
compare text for equality
if score > 5->
compare a number with a threshold
if touching danger->
use a sensing result
else->
handle the other answer
Guided project
Quiz of Questionable Knowledge
Answer useful questions while the host insists that at least one distractor involves moon cheese.