Simple Console Based Rock Paper Scissors Game Written in Nodejs

nodejs-rock-paper-scissors

Simple console based rock paper scissors game written in nodejs.

Prerequisite

This is a nodejs based project. You will need to have nodejs ready in your environment. https://nodejs.org/en/download/

Instructions

  1. Open your console and navigate to the folder. Run this before you start the game.
npm install

  1. Run this to start the game:
npm run start

  1. To run the test case:
npm run test

Game explaination

  1. When the game start, you will be asked choose to start a new game. Y -> continue, n or any other answer -> exit the game.
  2. If you choose to continue, you will be prompt to pick a game mode: Player vs Computer / Computer vs Computer.
Player vs Computer

You will be asked to choose option from rock/paper/scissors.

Once you’ve made your move, you’ll see the result and asked to play the game again.

Computer vs Computer

You’ll see the result and asked to play the game again.

Download Details:

Author: miyachew

Source Code: https://github.com/miyachew/nodejs-rock-paper-scissors

#nodejs #node #javascript

Simple Console Based Rock Paper Scissors Game Written in Nodejs
15.20 GEEK