Skip to content

vikjusko/rps-challenge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock, Paper, Scissors, Lizard and Spock game:

Game that lets you play against the computer by choosing one of the following moves:

  • Rock
  • Paper
  • Scissors
  • Lizard
  • Spock

Basic rules are following:

  • Rock wins against lizard & scissors
  • Paper wins against rock & spock
  • Scissors win against paper & lizard
  • Lizard wins against paper & rock
  • Spock wins against scissors & rock

The Game starts with the main page that lets a user submit their name and then redirects to a page where they choose their move; after the move was selected, the Game shows a result confirming what move was selected by the user and what move was selected by the computer. The user can continue playing infinite times by clicking on play again button and re-choosing their move.

Initially created a Computer class, Person class and Game class, as computer class was only creating a random selection, instead created a method withing the Game class.
Started the challenge by creating a diogram of what will be responsible for what action and how will the website operate and what page will redirect to where. Visulised how the website will be opearating and what page will be responsible for what. Decided on creating 3 pages that will be responsible for greeting, letting select a move and showing a result.

About

Create the Rock Paper Scissors Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 65.4%
  • HTML 34.6%