Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • thank you for your help. Now I do not want this game to tie, so I will need a while loop somewhere, look at my updated code above and see if you can tell me where to put it in. Right now I don't have the loop in, it just prints stalemate, but I want to take that out have have the game run again if they are the same. Commented Sep 25, 2013 at 23:39
  • Well, then instead of three ifs, just use if userInput ==randomInput print "stalemate" . see edit above Commented Sep 25, 2013 at 23:44
  • I understand, but how to I run the program over if they are the same, I don't want it to end in a stalemate. Commented Sep 25, 2013 at 23:48
  • So, what is the criteria to start over or end the game, is this some kind of rock, paper, scissors? When do you want to end game when they both are not same? Commented Sep 25, 2013 at 23:52
  • sorry for not giving you the details. It is a RPS game, just different names. I want to print the outcome of the game, and want it to ask me again, not to come to an end, just to repeat playing the game. Commented Sep 25, 2013 at 23:56