KS2/KS3/Home-Ed/Home-school/Self-study/Computing/Coding/Computer Science
Lesson 6. Conditional Logic & Sensing
-
Brief recap of nested loops and a starter quiz on block counts
-
Introduction to conditional statements (if/then and if/then/else logic)
-
Demonstrating the Agent’s environmental sensing blocks (detecting blocks and obstacles)
-
Teacher modelling: programming the Agent to turn when encountering an obstacle
-
Guided task: creating a maze-solving algorithm using conditional checks
-
Student activity: write code allowing the Agent to clear land while avoiding water
-
Discussion on decision-making algorithms and logical reasoning in software
-
Check for understanding: evaluating boolean true/false conditions in sample code
-
Independent task: build an automated tree-clearing script with sensing loops
-
Debugging challenge: solving infinite loops caused by missing condition updates
-
Peer demonstration of maze navigation algorithms in different world layouts
-
Lesson review on combining loops and conditional statements effectively
Something went wrong, please try again later.
This resource hasn't been reviewed yet
To ensure quality for our reviews, only customers who have purchased this resource can review it
Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.