Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rock Paper Scissors
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
players
spec
.gitignore
Gemfile
Gemfile.lock
Guardfile
README.md

README.md

Rock Paper Scissors

Goal

Build a smart player that beats another player in Rock Paper Scissors best of three rounds. Winning player gets 5 points.

Rules of this contest

Preparation

  • Fork or clone the project
  • Work in your own branch

The Game

  • You can create more than one strategy
  • Send in one file for each strategy
  • A file should contain exactly one subclass of Player
  • Start the name of your subclass with your team-name (ie: GrolschSmartPlayer)
  • Start the name of your files with your team-name (ie: grolsch_smart_support.rb)
  • Start any data files you write to disk with your initials (ie: grolsch_smart_image.jpg)

Submit

  • Push your branch
  • Create Pull Request

Rock Paper Scissor

There are three items: Rock, Paper and Scissors

  • Paper beats a Rock (because it covers a rock)
  • Scissors beat Paper (scissors cut paper)
  • A Rock beats Scissors (rock breaks scissors)
  • Anything else is a "draw"

The Big Bang Bonus: Rock Paper Scissor Lizard Spock

IMAGE ALT TEXT HERE

  • Paper beats rock
  • Rock beats lizard
  • Lizard beats Spock
  • Spock beats scissors
  • Scissors beats lizard
  • Lizard beats paper
  • Paper beats Spock
  • Spock beats rock
  • Rock beats scissors

Its simple

Points

  • Winning basic game: 10 points
  • Winning with Lizard Spock: 15 points
  • Winning with player specs/tests: multiply by 1.5
  • Winning by using monkey patching: 3 points in total
Something went wrong with that request. Please try again.