WARNING: This program has a logic error! The sprites should move until they are touching the star.

RULE: While loops continue until the condition is False.

  • Click Run and see what happens on the stage. The condition at the moment is counter·<·10.
  • Fix the program by changing the condition in the while loop. Try changing 10 to something larger!
  • Click Run to see if you fixed the program. When it is fixed, click Submit and Next.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)