The challange for week 3 was to create 'Rock, Paper, Scissors, Lizard, Spock' for the browser. It's built using Sinatra and Ruby. Testing was done with RSpec and Cucumber.
https://rpsls-rb.herokuapp.com/game
- Ruby
- Sinatra
- CSS
- HTML
- RSpec
- Cucumber
- Capybara
- Git
Clone the directory:
$ git clone https://github.com/elenagarrone/RPSLS.git
Change into it:
$ cd RPSLS
Install the gems:
$ bundle install
Try it on localhost:
$ rackup
#then on the browser go to:
localhost:9292
From inside the directory run:
$ rspec
and:
$ cucumber
The cucumber tests are failing sometimes due to the fact that the computer chose rendomly its weapon. You can have a look HERE to see all the tests passing.