第13步:让我们完成游戏中最后三个组合!
- 再添加三次 if and 。在每个 if 语句中测试玩家是否选择 "scissors" 而计算机选择 "rock"、"paper"和 "scissors"。
- 向每个 if 语句添加 Set Text 。将字符串更改为 "Computer wins!" 、 "Player wins!" 和 "Tie game!" ,具体取决于谁获胜。
To navigate the page using the TAB key, first press ESC to exit the code editor.