Skip to content

somcode/rps-challenge

 
 

Repository files navigation

RPS Challenge

Summary

  • This application allows a player to take part in a game of Rock, Paper, Scissors against a computer.

  • The rules of the game are as follows:

    • Rock beats Scissors
    • Scissors beats Paper
    • Paper beats Rock

Installation

To play the application online:

To play the application locally:

  • Clone the repository

  • Run gem list in the project directory to check whether bundler is installed. If it is not, run gem install bundler

  • Run bundle in the project directory to ensure all necessary gems are installed

  • Run rackup and visit localhost:9292

Playing the game

  • Enter your name and click the Submit button

screen shot 2018-04-26 at 23 13 20

  • Begin playing by selecting either rock, paper or scissors. Meanwhile, computer also selects an option at random

screen shot 2018-04-26 at 23 13 40

  • A winner is declared

screen shot 2018-04-26 at 23 14 19

Also, you have the option to play again by clicking the button Play Again!

User stories

As a marketeer
So that I can see my name in lights
I would like to register my name before playing an online game

As a marketeer
So that I can enjoy myself away from the daily grind
I would like to be able to play rock/paper/scissors

Hints on functionality

  • the marketeer should be able to enter their name before the game
  • the marketeer will be presented the choices (rock, paper and scissors)
  • the marketeer can choose one option
  • the game will choose a random option
  • a winner will be declared

Run all tests

screen shot 2018-04-26 at 23 00 17

About

Create the Rock Paper Scissors Game

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 81.6%
  • HTML 18.4%