Skip to content

GiadaSimonetti/rpsls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPSLS - (Rock - Paper - Scissors - Spock - Lizard)

Rock - Paper - Scissors - Spock - Lizard game in Javascript and Karma for the tests

RPSLS

`It's easy:

  • "Scissors cuts paper,
  • paper covers rock,
  • rock crushes lizard,
  • lizard poisons Spock,
  • Spock smashes scissors,
  • scissors decapitates lizard,
  • lizard eats paper,
  • paper disproves Spock,
  • Spock vaporizes rock,
  • (and as it always has), rock crushes scissors."`

Instructions

Prerequisites: node installed

Setup

$ git clone https://github.com/GiadaSimonetti/rpsls
$ cd rpsls
$ npm install

To run it

$ open index.html
  • go to the browser
  • read the rules

rules

  • scroll down
  • click on one of the icon to choose which weapon use

1

  • click the button Click to play! to start the game

2

  • click the button Try again to start a new match

3

To run the tests

$ npm run test

About

Javascript Rock-Paper-Scissor-Lizard-Spock

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published