Simple Rock, Paper, Scissors game for the command-line, implemented in ruby.
Just install the gem!
gem install ro_sham_bo
Alternatively, build from source.
git clone https://github.com/evanthegrayt/ro_sham_bo.git cd ro_sham_bo rake install
Just call the
ro_sham_bo executable, which should now be in your
The default number of rounds is best-of
3. This can be altered with the
-r [NUMBER OF ROUNDS] option. The number passed must be an odd number. To see
a list of all available options, run with
After calling the executable, you'll be asked to enter 'rock', 'paper', or
'scissors' (entering the first letters of the options is also accepted for
brevity's sake). The program will also randomly choose one of these options.
Once you hit
[return], your choice will be compared to the computer's choice,
and a winner for that round will be chosen based off the classic rules of the
The rules are standard rock, paper, scissors rules.
- Rock beats Scissors
- Scissors beats Paper
- Paper beats Rock
This was just a fun project for me to work on, but if you find problems, please create an issue.