Project 548: Homeward Bound

7. Directions for the Snow Car

Give directions to the Snow Animal car so it can take your snow animal home.
Starting point file for this challenge

Your goal

Steps

1. Plan the drive!

Let's plan out the path we are going to tell the car to take. 

Which of the colored circles will the robot car need to travel to in order to bring the animal home?

2. Add the first instruction

Get a "glide 1 secs to random position" block from the dark blue "Motion" tab, and add it to the code after the "wait 1 seconds" block. Then change 'random position' to the first colored circle you want the car to drive to.

3. Add a "wait 0.5 seconds" block

We want our robot car to drive safely, so we are going to tell it to pause for half a second before it drive to the next circle.

4. Add the next instructions and wait

Continue adding glide blocks and wait blocks until your car is at the colored circle that is closest to the snow habitat. 

5. Finish the path!

Once the robot car has reached the colored circle that is closest the animals habitat it still needs one more instruction to take the animal home.

Add a "glide 1 seconds to random position" block, and change 'random position' to "Snow".  

6. Test it out!

Test out your finished instructions!
When the car touches the Snow habitat it sends a signal to the next car that it is finished so it can start driving the next animal home. 

You will know your code works if your car does not get sent back to the beginning and if the next car appears at the start after this one has reached the correct habitat.