Now let's use a loop to set up slots where the guesses will appear.

  • Set up two Integer Variables: x whose value is -125 and y whose value is 200.
  • Use Loop with Range to set up a loop that will run 10 times. This will create 10 rows.
  • Drag another Loop with Range inside the first loop. Set the range to 4. This will create each row of slots.
  • Drag a Circle inside the the inner loop. Name it slot.

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)