Blockly Games : Pond Tutor   5 10

   
Player
 
Pendulum
 
0 70 0
Pond
Logic
Loops
Math
0°70cannon(,);
This opponent moves back and forth, making it hard to hit. The 'scan' expression returns the exact range to the opponent in the specified direction.

0 ° scan ( )

This range is exactly what the 'cannon' command needs to fire accurately.
Congratulations!

  
Your solution works, but you can do better. Use 'scan' to tell the cannon how far to shoot.