467,877 Members | 1,210 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,877 developers. It's quick & easy.

Paper,Scissor,Rock Help

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.
Feb 11 '08 #1
  • viewed: 2003
Share:
11 Replies
8TB
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.
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.
Feb 11 '08 #2
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 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 :(
Feb 11 '08 #3
8TB
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?
Feb 11 '08 #4
Are you looking for the code or are you looking for guidance on how to write the code?

yes sir................................
Feb 11 '08 #5
8TB
yes sir................................
Yes what? Did you read my question?
Feb 11 '08 #6
Yes what? Did you read my question?
I'm looking for whatever you're able to help me,the code is fine if u are able to give it to me, if you dont want to just give me the code,then guide me how to do it please
Feb 11 '08 #7
BigDaddyLH
Expert 1GB
I like to use the bulldozer: three rocks in a row. Works ever time!
Feb 11 '08 #8
RedSon
Expert 4TB
I like to use the bulldozer: three rocks in a row. Works ever time!
That only works if the other person doesn't do paper twice in a row.
Feb 11 '08 #9
BigDaddyLH
Expert 1GB
That only works if the other person doesn't do paper twice in a row.
G*d d*mn that "Paperboy" move!
Feb 11 '08 #10
8TB
I'm looking for whatever you're able to help me,the code is fine if u are able to give it to me, if you dont want to just give me the code,then guide me how to do it please
We don't give out boilerplate codes here. I have already guided you in the right direction.

P.S Rock
Feb 12 '08 #11
RedSon
Expert 4TB
P.S Rock
Dang I had scissors. Next try... PAPER! HA!
Feb 12 '08 #12

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Carlos Kirkconnell | last post: by
7 posts views Thread by TooNaive | last post: by
1 post views Thread by Vince | last post: by
3 posts views Thread by Panos | last post: by
reply views Thread by jack112 | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.