第 7 步:我们将使用正方形来构建我们的迷宫。让我们用迷宫的长度来得到我们正方形的长度。

  • ,拖动在create_maze()中缩进的Division
  • =符号左侧的变量从my_varsquare_length
  • 然后,将数字6更改为500.0 (我们舞台的长度),将2更改为number_of_rows
  • 我们正在寻找正方形的长度,因为我们将舞台划分为迷宫中的行数。

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)