提示不工作岩石剪刀odin项目 [英] prompt not working rock paper scissors odin project

查看:65
本文介绍了提示不工作岩石剪刀odin项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

提示不起作用。有什么建议?如果你能为我拼出它会有所帮助。我只做了不到一个星期就谢谢了!

Hi, the prompt doesn''t work. Any suggestions? If you could spell it out for me it would be helpful. I have only been doing this for less than a week Thanks!

展开 | 选择 | Wrap | 行号

推荐答案

在第15行,你错过了一个''if''(在''else''之后)

在第22行,你错过了一个''{''


在更改了两个错误之后,你会得到一个问题:你选择摇滚,纸张还是剪刀?
On line #15 you are missing an ''if'' (after ''else'')
On line #22 you are missing an ''{''

After changing above two typo''s, you''ll get a question asked about "Do you choose rock, paper or scissors?"


还有一些东西称为变量的范围,谷歌为它,看看这段代码的作用:

Also there is something called the scope of a variable, Google for it, an look at what this code does:

展开 | 选择 < span class =codeDivider> | Wrap | 行号


感谢您的回答。我做了更改,但它仍然无法正常工作。
Thank you for your answer. I made the changes but it still isn''t working.
展开 | 选择 | Wrap | 行号


这篇关于提示不工作岩石剪刀odin项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆