Design a maze and a robot, which a robot will automatically go around a path
ALL students will: Create a background and a robot sprite. These will move autonomously.
MOST students will: Program their sprites to change direction depending on the color it is sensing
SOME students may: Program their sprites to go around a path, changing direction when it hits a specific color
Problem: Robots in the real world often need to navigate tricky paths. How do they know when to change a specific direction?
Head over to https://scratch.mit.edu/, and sign up if you do not already have an account.
Problem: This sprite below will keep turning left, meaning it will never be able to properly navigate the maze.
Task 1: Design your robot
I recommend having a sprite that is narrow at the front.
Task 2: Design your path
Rule: If it touches red, it turns right. If it touches green it turns left. Your robot must turn left and right multiple times when going around the path.
Design your path. You don't specifically need walls, just points for it to turn.
Task 3: Program your robot
Program the device to turn right when it's touching red, and turn left when it touches green.
Have sprites which it collects along the path, which increases a score.
Take a video of your sprite navigating the maze at least twice round.
Take a screenshot of your code.
Put this on your website.