第12 步:让我们告诉玩家,如果用户选择"paper"而计算机选择"scissors" ,则计算机获胜。
- 添加if and测试choice是否等于"paper"和computer_choice等于"scissors" 。
- 拖出Set Text 。将命令分配给result 。
- 将字符串更改为"Computer wins!"因为剪刀比纸好。
To navigate the page using the TAB key, first press ESC to exit the code editor.