A simple Sinatra application that will play rock, paper, scissors. The player inserts their move as URL parameter at the end of http://localhost:4567/throw/
. Then computer will randomly pick a move and the final result will appear on the page. 🪨 📃 ✂️
- Clone repository
git clone [email protected]:fi-ya/rock_paper_scissors.git
cd
into directory- Check to see if you have
sinatra
&thin
, installed by running commandgem list
- if you don't you can install using
gem install <name>
- if you don't you can install using
- Start game by running command in terminal
ruby game.rb
- Decide your move (rock, paper, scissors)
- Open browser on
http://localhost:4567/throw/scissors
where scissors is the move you have made - Have fun playing!