Skip to content

RutviShah2008/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors

Write a JavaScript program that allows the user to play Rock Paper Scissors.

The Program should ask the user if they want to choose rock, paper or scissors. A computer should be randomly assigned one of the three choices.

Winning combinations are as follows:

Rock beats Scissors

Scissors beats Paper

Paper beats Rock.

The program should indicate who the winner was. This program should be written in vanilla javascript (No libraries).

The code can either be

A: intended for the browser, in which case an index.html file should be included which includes a script src to the program.

B: intended for node, in which case the code should be able to be run by typing node (your_file).js in the terminal, and the program will run inside the terminal.

The program should also handle the following issues:

The player choosing an invalid option.

Handling a tie (rethrow)

About

NodeJS implementation - Rock Paper Scissors Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published