Puppy Adventure (Complete)

Answer Key

1. Puppy Adventure / Left Behind
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlCall","cat":"functions","name":"Bark","label":"Bark"}}

2. Puppy Adventure / Pick up the Scent
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run","next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}}}

3. Puppy Adventure / Get the Baseball Cap
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run","next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run","next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run","next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}}}}}

4. Puppy Adventure / Avoid the Traffic Cones
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run","next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run","next":{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump","next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}}}}}

5. Puppy Adventure / Repetition with Loops
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"9"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}]}}

6. Puppy Adventure / Repeat the Pattern
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"3"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run","next":{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump"}}]}}

7. Puppy Adventure / Repeat the Pattern 2
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"3"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump","next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}}]}}

8. Puppy Adventure / Sequenced Repetition
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"2"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump","next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}}],"next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}}}

9. Puppy Adventure / Sequenced Repetition 2
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run","next":{"func":"blockControlRepeat","values":[{"type":"number","value":"2"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run","next":{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump"}}]}}}

10. Puppy Adventure / Two Loops
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"3"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}],"next":{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump","next":{"func":"blockControlRepeat","values":[{"type":"number","value":"3"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}]}}}}

11. Puppy Adventure / Using Conditional Loops
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeatUntil","values":[{"type":"wrapper","func":"valueControlCall","name":"reachedGoal","label":"Water"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}]}}

12. Puppy Adventure / Using Conditional Loops 2
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeatUntil","values":[{"type":"wrapper","func":"valueControlCall","name":"reachedGoal","label":"Water"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run","next":{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump"}}]}}

13. Puppy Adventure / Using Conditional Loops 3
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeatUntil","values":[{"type":"wrapper","func":"valueControlCall","name":"reachedGoal","label":"Shoe"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump","next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}}]}}

14. Puppy Adventure / Using "Not"
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlWhile","values":[{"type":"wrapper","func":"valueOpNot","values":[{"type":"wrapper","func":"valueControlCall","name":"reachedGoal","label":"Cap"}]}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}]}}

15. Puppy Adventure / Using "Not" in Loops
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlWhile","values":[{"type":"wrapper","func":"valueOpNot","values":[{"type":"wrapper","func":"valueControlCall","name":"reachedGoal","label":"Cap"}]}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run","next":{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump"}}]}}

16. Puppy Adventure / Conditionals
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeatUntil","values":[{"type":"wrapper","func":"valueControlCall","name":"reachedGoal","label":"Water"}],"containers":[{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueControlCall","name":"isObstacle","label":"Log"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump"}],"next":{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}}]}}

17. Puppy Adventure / Conditionals 2
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeatUntil","values":[{"type":"wrapper","func":"valueControlCall","name":"reachedGoal","label":"Shoe"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump","next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueControlCall","name":"isPath","label":"Path Ahead"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}]}}]}}

18. Puppy Adventure / Multiple Conditions
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeatUntil","values":[{"type":"wrapper","func":"valueControlCall","name":"reachedGoal","label":"Cap"}],"containers":[{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueControlCall","name":"isObstacle","label":"Log"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueControlCall","name":"isPath","label":"Path Ahead"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}]}}]}}

19. Puppy Adventure / If-Else
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeatUntil","values":[{"type":"wrapper","func":"valueControlCall","name":"reachedGoal","label":"Shoe"}],"containers":[{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueControlCall","name":"isObstacle","label":"Pumpkin"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump"},{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"}]}]}}

20. Puppy Adventure / If-Else 2
Solution:
{"func":"registerFunction","cat":"functions","name":"On Start","label":"On Start","hasFlap":false,"next":{"func":"blockControlRepeatUntil","values":[{"type":"wrapper","func":"valueControlCall","name":"reachedGoal","label":"Cap"}],"containers":[{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueControlCall","name":"isPath","label":"Path Ahead"}],"containers":[{"func":"blockControlCall","cat":"functions","name":"Run","label":"Run"},{"func":"blockControlCall","cat":"functions","name":"Jump","label":"Jump"}]}]}}

21. Puppy Adventure / Maze Introduction

22. Puppy Adventure / Maze Craze
Solution:
{"func":"registerKeyTrigger","marked":true,"values":[{"type":"choice","value":"left arrow"}],"next":{"func":"blockControlCall","marked":true,"cat":"functions","name":"run left","label":"run left"}}
{"func":"registerKeyTrigger","marked":true,"values":[{"type":"choice","value":"right arrow"}],"next":{"func":"blockControlCall","marked":true,"cat":"functions","name":"run right","label":"run right"}}
{"func":"registerKeyTrigger","marked":true,"values":[{"type":"choice","value":"up arrow"}],"next":{"func":"blockControlCall","marked":true,"cat":"functions","name":"run up","label":"run up"}}
{"func":"registerKeyTrigger","marked":true,"values":[{"type":"choice","value":"down arrow"}],"next":{"func":"blockControlCall","marked":true,"cat":"functions","name":"run down","label":"run down"}}