Skip to content

DevOlabode/rock-paper-scissors-with-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors - CLI Game 🎮

A simple Node.js command-line Rock-Paper-Scissors game where you play against the computer in a best-of-5 match. The computer makes random choices, and the script keeps score to declare a final winner. Outputs are color-coded for a more fun experience.

How to Play

  1. Clone the repo:

    git clone <https://github.com/DevOlabode/rock-paper-scissors-with-node>
  2. Install dependencies:

    npm install
  3. Run the game:

    node script.js

You'll be prompted to choose either rock, paper, or scissors for each round. After 5 rounds, the script will display the final result.

Example Output

Choose either rock, paper, scissors: rock
You chose ROCK
Computer chose SCISSORS

You win! ROCK beats SCISSORS

Scores: You: 1 | Computer: 0

Built With

  • Javascript
  • Node.js
  • prompt-sync - For user input
  • colors - For colorful terminal output

Acknoledgement.

  • The Odin Project

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors