Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.17 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.17 KB

Build Status

RPS Challenge

Makers Academy weekend challenge to create a rock, paper, scissors, test-driven web-application in sinatra.

Challenge Specification

Tech:

Ruby - Rspec - Sinatra - Capybara

Setup

    $ git clone https://github.com/jbropho/rps-challenge
    $ cd rps-challenge
    $ bundle install
    $ rackup -p 9292
    visit localhost:9292/play_ai
    enter a player name and press submit

Testing

    $ rspec

Approach

I approached this task by trying to create a design which would allow me to implement single and multiplayer functionality using as much shared code as possible. This turned out to be an instructive error, with the time spent refactoring my codebase leading to me not having time to implement the extra functionality.

Positives

  • Achieved goal from previous weekend of learning to test Sinatra routers
  • 100% test coverage with a full feature test

Focus for the coming week

  • Practice finding the simplest possible solution to each problem