QUESTION IMAGE
Question
classic maze 16 i finished!
instructions
acorn! acorn! acorn! use an if block to get me there with the fewest number of blocks.
blocks workspace: 1 / 5 blocks
move forward
when run
turn left
turn right
repeat until
do
if path to the left
do
run step
english
Step1: Set up main trigger
Start with the when run block as the base.
Step2: Add repeat loop
Drag the repeat until <acorn> block inside when run to keep the program going until the squirrel reaches the acorn.
Step3: Add forward movement
Place the move forward block inside the do section of the repeat loop to keep moving forward by default.
Step4: Add path check condition
Drag the if path to the left do block inside the repeat loop (after move forward).
Step5: Add left turn action
Put the turn left block inside the do section of the if block to turn left when the path is open on that side.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
The final block arrangement in the workspace is:
when run- Inside
when run:repeat until <acorn>
- Inside
repeat untildo:move forward - Inside
repeat untildo:if path to the left do - Inside
ifdo:turn left
This setup will move the squirrel forward, and turn left whenever there is an open path to the left, guiding it to the acorn with the minimum number of blocks.