Skip to content

Leigan0/rps-challenge

 
 

Repository files navigation

RPS Challenge

Build Status Maintainability Test Coverage

I have written this code to complete the challenge below to meet the user stories provided.

I have aimed to solve this challenge using the BDD cycle, with a test driven approach.

The game defaults to a computer play if no second player details are entered. The website output will be tailored depending if one player or two players. Given more time on the challenge I would potentially have a further path in a two player game so players can enter weapons on different screens. I have extended the functionality to allow players to play multiple games against each other and result log keeps track of this.

Again, given more time I would revisit my tests to consider removing tests that have become redundant following extension.

The game also includes spock and lizard rules - you can find them here http://en.wikipedia.org/wiki/Rock-paper-scissors-lizard-Spock ).

User stories

Your task is to provide a Rock, Paper, Scissors game for them so they can play on the web with the following 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

Getting started

Usage

  • To play the game follow instructions on screen

Technologies used

  • RSpec
  • Capybara
  • Ruby
  • HTML
  • CSS
  • Sinatra

About

Create the Rock Paper Scissors Game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 82.9%
  • HTML 10.5%
  • CSS 6.6%