Skip to content

fi-ya/rock_paper_scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Rock, Paper, Scissors

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. 🪨 📃 ✂️

To play

  • 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 command gem list
    • if you don't you can install using gem install <name>
  • 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!

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages