Warm-Up
Time for another small project! In this checkpoint, you'll use everything you've learned since the walk in the park: loops with conditions, the dog's senses, If and else, and not. The editor offers all the blocks you know, but you won't need every one of them.
As in the first checkpoint, the instructions say what the dog should do, not which blocks to use. This time, though, the three exercises build a single program: each one starts with the program from the one before, and its maps ask a little more of it.
The project. It's the day of the dog show, and the dog is running the obstacle course. Each run starts in a starting box made of hedges and goes along the light path to the goal, the finish. Every map is a different course, and the dog doesn't know any of them in advance. So your program can't count steps: it has to look where the dog is going.
The task. First, the warm-up. The dog stands in the box, facing its back wall. The way out is somewhere else on each map: to the dog's left, to its right or behind it. Get out of the box and run the course to the goal. The courses have different shapes, but all their corners turn right.
A tip: trace one course with your finger and stop wherever the dog can't go straight ahead: in the box, and at every corner. Is a corner so different from the box? And be careful at the corners: the path the dog came along is right behind it. If the dog turns the wrong way, it finds that path first and runs back.
Instructions
- 1
Get the dog out of the box and to the goal on all three maps.