This repository contains two simple and fun JavaScript games: Rock, Paper, Scissors and Dice Roll Challenge.
A classic game where the player can choose Rock, Paper, or Scissors, and the computer randomly selects one. The game compares the two selections to determine a winner based on the following rules:
- Rock beats Scissors
- Scissors beats Paper
- Paper beats Rock
A fun game where you and the computer each roll a virtual dice, and the higher roll wins! If both rolls are equal, it's a tie.
- Clone or download the repository.
- Open the JavaScript files (
rockPaperScissors.js,diceRollGame.js) in your preferred code editor. - Run the file in Node.js using the following command:
node [filename].js