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*

5
  • You would want to compare userInput to randomChoice, not the whole list, right? Though the comparison needs to be more complex to be like RPS. Commented Sep 25, 2013 at 22:58
  • 2
    Plus, I believe if Java beats either Python or Ruby, the universe will raise a LogicError, which will make it hard to write the RPS code. :) Commented Sep 25, 2013 at 23:17
  • Do i need to store the 3 strings as variables then? Sorry for my confusion. Commented Sep 25, 2013 at 23:20
  • @abarnert while I tend to agree with you, I think python could one-line suckerpunch Java (while ruby mumbles incoherent gibberish in the dark) Commented Sep 25, 2013 at 23:25
  • Ryan, no you don't need that. You are not using randomInput = random.choice(gameList) statement at all, you are still comparing with gameList, see my answer below Commented Sep 25, 2013 at 23:26