Paper,Scissor,Rock Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blackhacker
    New Member
    • Feb 2008
    • 4

    Paper,Scissor,Rock Help

    Please can anyone help me to make a simple simple Java code to force the game scissor,paper,r ock 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.capt ion = "I choose paper,so i beat you"
    elseif
    txta.text = "Paper" then
    lbldisplay.capt ion = "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.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by blackhacker
    Please can anyone help me to make a simple simple Java code to force the game scissor,paper,r ock 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.capt ion = "I choose paper,so i beat you"
    elseif
    txta.text = "Paper" then
    lbldisplay.capt ion = "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.

    Comment

    • blackhacker
      New Member
      • Feb 2008
      • 4

      #3
      Originally posted by r035198x
      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 :(

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by blackhacker
        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?

        Comment

        • blackhacker
          New Member
          • Feb 2008
          • 4

          #5
          Originally posted by r035198x
          Are you looking for the code or are you looking for guidance on how to write the code?

          yes sir............ ............... .....

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by blackhacker
            yes sir............ ............... .....
            Yes what? Did you read my question?

            Comment

            • blackhacker
              New Member
              • Feb 2008
              • 4

              #7
              Originally posted by r035198x
              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

              Comment

              • BigDaddyLH
                Recognized Expert Top Contributor
                • Dec 2007
                • 1216

                #8
                I like to use the bulldozer: three rocks in a row. Works ever time!

                Comment

                • RedSon
                  Recognized Expert Expert
                  • Jan 2007
                  • 4980

                  #9
                  Originally posted by BigDaddyLH
                  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.

                  Comment

                  • BigDaddyLH
                    Recognized Expert Top Contributor
                    • Dec 2007
                    • 1216

                    #10
                    Originally posted by RedSon
                    That only works if the other person doesn't do paper twice in a row.
                    G*d d*mn that "Paperboy" move!

                    Comment

                    • r035198x
                      MVP
                      • Sep 2006
                      • 13225

                      #11
                      Originally posted by blackhacker
                      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

                      Comment

                      • RedSon
                        Recognized Expert Expert
                        • Jan 2007
                        • 4980

                        #12
                        Originally posted by r035198x
                        P.S Rock
                        Dang I had scissors. Next try... PAPER! HA!

                        Comment

                        Working...