Information about cookies on this page

Our website uses cookies to ensure the functionality of the website, to collect and analyze information about the performance and usage of the website. Privacy Policy

  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in
  
  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in

Left or Right?

This time, the dog faces down the screen, toward you. And that's a trap: its left paw is now on your right side. Try it: stand facing someone and both raise your left hand. Your hands will be opposite each other.

The Turn left ↺ and Turn right ↻ blocks always turn the dog based on where it is facing. So when the dog faces down and needs to go right (as you see it), it has to turn left.

How not to get lost:

  • Put yourself in the dog's place. Imagine standing where it stands, facing the same way. Which way would you turn?
  • Turn the view. Drag the dog's world until you're looking over the dog's shoulder. Then its left and right match yours again. The target button in the top right corner resets the view.
  • Look at the arrows on the blocks. ↺ means counterclockwise and ↻ clockwise, seen from above. That holds whichever way the dog faces.

Instructions

  1. 1

    Get the dog to the goal. At every corner, stop and think about which way the dog is facing.

Back

3/7

  1. 1. What Is an Algorithm
  2. 2. Turning
  3. 3. Left or Right?
  4. 4. Planning the Route
  5. 5. Finding Bugs
  6. 6. Collecting Bones
  7. 7. The Shortest Way
Next

Try it yourself

Do this exercise right here in your browser. No account needed.