现在让我们使用循环来设置猜测出现的位置。

  • 设置两个 Integer Variable:值为 -125x 和值为 200y
  • 使用 Loop with Range 来设置将运行 10 次的循环。这将创建10行。
  • 将另一个 Loop with Range 拖动到第一个循环内部。将范围设置为 4这将在每一行创造一个狭缝。
  • Circle 拖动到内部循环中。将其命名为 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
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)