第4步:对于每个选择组合,我们都需要一个 if 语句。

让我们从玩家的 choice"rock"computer_choice"rock"开始。

  • 将 if 语句中的两个测试值都更改为"rock"

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)