Makers Academy weekend challenge to create a rock, paper, scissors, test-driven web-application in sinatra.
Ruby - Rspec - Sinatra - Capybara
$ 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
$ rspec
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.
- Achieved goal from previous weekend of learning to test Sinatra routers
- 100% test coverage with a full feature test
- Practice finding the simplest possible solution to each problem