Rock, Paper, Scissors

Rock, Paper, Scissors

rps.rb

I still use Rock, Paper, Scissors whenever there is a big decision involving another person that needs an unbiased opinion. I guess I could flip a quarter, but Rock, Paper, Scissors is a lot more suspenseful. Seriously though, this game is big in some circles. If you didn't know, there are clubs and tournaments to support the game. This script will be your practice partner until you make it to the big leagues.

The Code

 puts "\n\nWelcome to Rock, Paper, Scissors!" puts "This is a game of chance; the computer randomly picks one of three choices." puts "\nRock beats Scissors, but is beaten by Paper." ...

Get Wicked Cool Ruby Scripts now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.