project screenshot

space puzzle

by Absolute Success

originally from "space puzzle" by Spiteful Snowflake

0
156
Share
Report

Description

template for the space puzzle

Concepts

functions, input/output, advanced messaging, lists, simple variables, simple messaging, advanced math, variables, simple conditionals, miscellaneous, basic math, text handling, music and instruments, simple drawing, expert math, delays, advanced loops, simple events, fill color, conditional loops

  • #Lines:99
  • #Actors:6
  • #Costumes:15
  • #Scripts:34

Text Snippets

  • template for the space puzzle
  • great, you've solved the puzzle. can you solve it using 7 blocks?
  • the best solution to this puzzle uses 7 blocks.
  • <p>try using the "repeat until" or "repeat while" block until the rocket ship reaches the power cell.</p>
  • <p>try using the "turn left" if there is a path to the left.</p>
  • <p>try using the "turn right" if there is a path to the right.</p>
  • <p>you need to program the rocket ship to reach the power cell. connect the visual blocks in the right way to get the ship moving. try using the "repeat until" or "repeat while" block with "turn right", "turn left", and "forward" blocks.</p><p><code style="float:left;margin-right:10px;">{"func":"blockcontrolrepeatuntil","values":[{"type":"wrapper","func":"valuecontrolcall","name":"reachedgoal","label":"power cell"}]}</code><span>repeat the blocks in this "repeat until" until the rocket ship reaches the power cell. the "repeat until" block is useful when you want to run the same code again and again until the goal is reached. in this case the goal is the power cell. you can connect any block inside it.</span></p><div style="clear:both"/><p><code style="float:left;margin-right:10px;">{"func":"blockcontrolwhile","values":[{"type":"wrapper","func":"valuecontrolcall","name":"hasforward","label":"path in front"}]}</code><span>repeat the blocks in this "repeat while" there is a path in front of the rocket ship. the "repeat while" block is useful when you want to run the same code again and again while a condition is true. you can connect any block inside it.</span></p><div style="clear:both"/><p><code style="float:left;margin-right:10px;">{"func":"blockcontrolifelse","values":[{"type":"wrapper","func":"valuecontrolcall","name":"hasleft","label":"path left"}]}</code><span>run the blocks in this "if" only if there is a path to the left ahead. otherwise, run the blocks in the second "else" section.</span></p><div style="clear:both"/><p><code style="float:left;margin-right:10px;">{"func":"blockcontrolif","values":[{"type":"wrapper","func":"valuecontrolcall","name":"hasright","label":"path right"}]}</code><span>run the blocks in this "if" only if there is a path to the right ahead.</span></p><div style="clear:both"/><p><code style="float:left;margin-right:10px;">{"func":"blockcontrolcall","cat":"functions","name":"forward","label":"forward"}</code><span>each "forward" block makes the rocket ship go one step forward to the next space on the path.</span></p><p><code style="float:left;margin-right:10px;">{"func":"blockcontrolcall","cat":"functions","name":"turnleft","label":"turn left"}</code><span>each "turn left" block makes the rocket ship turn to the left.</span></p><p><code style="float:left;margin-right:10px;">{"func":"blockcontrolcall","cat":"functions","name":"turnright","label":"turn right"}</code><span>each "turn right" block makes the rocket ship turn to the right.</span></p>
  • almost there. put it all together and collect the power cell.
  • non-optimal message
  • hmm! something's not right, try again.
  • watch out!! stay inside the lighted path to reach the power cell.
  • off-path message