RPS Challenge
Description
This is a program hosted by Sinatra, that allows you to play the Rock, Paper, Scissors, Lizard, Spock game.
Tasks
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
How to play
- Open the program terminal or an equivalent and enter:
$ git clone https://github.com/RobertClayton/rps-challenge.git
- Change directory into the folder just created.
$ cd rps-challenge/
- Install the apps dependencies
$ bundle install
- Use terminal to host a server to play the game.
$ rackup config.ru
- Go to a web browser and play the game at the following address:
http://localhost:9292/
- Enter the player's name.
- Click the play button.
- This next page shows you the score and gives you a choice of the five different options. When you choose an option via the buttons, the computer(CPU) will also make a random choice. Is is then displayed if you won, lost or draw and the score updated. To play, click the button which matches your choice.