No commit activity in last 3 years
No release in over 3 years
Settle any argument with a 1 or 2 player Rock Paper Scissors battle. Also includes rock-paper-scissors-lizard-spock mode! To install, run gem install rock_paper_scissors. See github repo for more information.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

 Project Readme

RockPaperScissors

Settle any argument with an epic Rock Paper Scissors battle. This gem allows you to run a 1 or 2 player rock paper scissors game from your command line.

NEW Rock-paper-scissors-lizard-Spock mode now available too! Test your prowess Sheldon-style. Don't know what I'm talking about? Check out the video...

IMAGE ALT TEXT HERE

Rock-Paper-Scissors-Lizard-Spock Rules

  • Rock crushes Lizard and crushes Scissors
  • Paper disproves Spock and covers Rock
  • Scissors decapitates Lizard and cuts Paper
  • Lizard poisons Spock and eats Paper
  • Spock smashes Scissors and vaporizes Rock

Installation

Add this line to your application's Gemfile:

gem 'rock_paper_scissors'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rock_paper_scissors

Usage

  1. To play the game, first require it in your Ruby script or jump into IRB or Pry require it there: require 'rock_paper_scissors'

  2. Then, set a variable equal to a new instance of Game: game = RockPaperScissors::Game.new

  3. The game will prompt you for play mode (1 for rock-paper-scissors, 2 for rock-paper-scissors-lizard-spock) and number of players (1 or 2).

  4. Finally, start the game with game.play (or whichever variable you set in step 2).

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/siakaramalegos/rock_paper_scissors. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.