问题描述
请任何人帮我制作一个简单的简单Java代码来强制游戏剪刀,纸张,摇滚工作吗?
例如我知道如何在Visual Basic中执行此操作但不是在java中,例如这就是我想要的东西
Rock beats Scissor
纸拍摇滚
剪刀节拍paper
msgbox''输入你的choce''
如果txta.text =" Rock"然后
lbldisplay.caption ="我选择纸张,所以我打败了你
elseif
txta.text =" Paper"然后
lbldisplay.caption ="我选择摇滚,所以你赢了
等等等我想要的只是我不知道Java如何工作得非常好,至少对你们至少看过这个主题的人来说都是如此。
Please can anyone help me to make a simple simple Java code to force the game scissor,paper,rock to work ?
for example i know how to do it in Visual Basic but not in java,for example this is kind of what i want
Rock beats Scissor
Paper beats rock
Scissor beats paper
msgbox ''Enter your choce''
If txta.text = "Rock" then
lbldisplay.caption = "I choose paper,so i beat you"
elseif
txta.text = "Paper" then
lbldisplay.caption = "I choose rock,so you win"
etc etc etc thats all i want i just dont know how Java works pretty well yet,than you so much to all of u who at least watched the topic.
推荐答案
如果您不知道任何Java,那么最好阅读
如果你现在没有时间完成整个过程,你可以浏览你想要的具体主题。
If you don''t know any Java then you are better off reading a Java tutorial.
If you don''t have time to go through the whole thing now, you can just browse to the specific topics you want.
i确实已经但没有找到任何看起来像我想要的东西,我已经找到了程序的大代码,但那不是我想找的东西:(
i did already but didnt found anything that looks like what i want,i''ve found large codes of the program,but thats not what im looking for though :(
您是在寻找代码还是在寻找如何编写代码的指导?
Are you looking for the code or are you looking for guidance on how to write the code?
这篇关于纸,剪刀,摇滚帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!