Code.org

Hour of code
Code.org
The Maze
Puzzle 1 of 20

Can you help me to catch the naughty pig? Stack a couple of
"move forward" blocks together and press "Run" to help me
get there.
Puzzle 2 of 20

This pig is ruffling my feathers. Help me to find him!
Puzzle 3 of 20

Trace the path and lead me to the silly pig. Avoid TNT or
the feathers will fly!
Puzzle 4 of 20

Guide me to the green evilness! (Watch out for TNT)
Puzzle 5 of 20

Keep calm and help me to find the bad pig. Otherwise I
might get angry!
Puzzle 6 of 20

There's a way I can get to the silly pig using only 2 blocks.
Can you figure it out?
Puzzle 7 of 20

Try to get me to the green intruder using only three
blocks.
Puzzle 8 of 20

Help me banish this bad piggy using the fewest
number of blocks. Try using more than one "repeat
times" block.
Puzzle 9 of 20

When a block is grey, that means you can't delete it. Solve this
puzzle using the "repeat" block that repeats 3 times. Try
putting these 3 blocks inside the grey "repeat" block: move,
move, turn.
Puzzle 10 of 20

Ok, try the new "repeat until" block - it will repeat until
I reach the annoying pig.
Puzzle 11 of 20

Ok, one last time for practice - can you solve this one
using only 4 blocks?
Puzzle 12 of 20

Dear person. Me zombie. Me hungry. Must... get... to
sunflower... Can you get me there with only 5 blocks?
Puzzle 13 of 20

Ok, this is similar, but slightly different. Can you do it in
only 5 blocks?
Puzzle 14 of 20

Use the new "if" block to let me decide when to turn. Hint:
you only need one more block, but learn how we set it up so
you can do it on your own next time.
Puzzle 15 of 20

Ok, this is just like the last puzzle, but you need to remember
how you used the "if" block and the "repeat" block together.
Puzzle 16 of 20

Me want sunflower! Use an "if" block to get me there
with the fewest number of blocks.
Puzzle 17 of 20

Ok, let's do that again for practice - this isn't very
different, but watch out for the chompers!
Puzzle 18 of 20

The "If-else" blocks checks a condition, and then does one
thing OR another. To get me to the sunflower try to use this
new block.
Puzzle 19 of 20

One more practice of the "if-else" block, can you get it
right on your first try?
Solution
Puzzle 20 of 20

Can you add just 3 blocks to help me solve a more complex
maze? If you do it right, I can walk any curvy path no matter
the length.
Solution