Skip to content

LixdyDev/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Rock Paper Scissors (Console Game) ๐Ÿชจ๐Ÿ“„โœ‚๏ธ

Welcome to my implementation of the classic "Rock Paper Scissors" game! I built this project as part of The Odin Project's Foundations curriculum to practice my JavaScript fundamentals.

๐Ÿš€ Live Demo

Click here to play the game! (Note: You must open your browser console to see the game output.)

๐ŸŽฎ How to Play

Since this is a logic-focused assignment, the game runs entirely in the Developer Console, not on the graphical web page.

  1. Open the Live Demo (or open index.html locally).
  2. Right-click anywhere on the page and select Inspect.
  3. Go to the Console tab.
  4. The game will prompt you to enter your choice (Rock, Paper, or Scissors).
  5. Play 5 rounds to see who wins the final score!

๐Ÿ› ๏ธ Features

  • 5-Round Game Loop: The game automatically runs for 5 rounds.
  • Score Tracking: Keeps track of the Player vs. Computer score.
  • Input Validation: Handles capitalization automatically (e.g., "rock", "Rock", and "ROCK" are all accepted).
  • Random Computer Choice: The computer selects its move randomly using Math.random().

๐Ÿ’ป Technologies Used

  • JavaScript (ES6): Used for all game logic, DOM interaction, and loops.
  • HTML5: Basic structure to host the script.

๐Ÿง  What I Learned

This project helped me solidify my understanding of:

  • Writing functions and return values.
  • Using Math.random() to generate computer choices.
  • Using prompt() for user input.
  • Implementing if/else logic and comparison operators.
  • Debugging with the Chrome Developer Tools.

๐Ÿ™ Acknowledgments

A huge thank you to The Odin Project for their amazing curriculum. This assignment was a great way to bridge the gap between simple variables and actual game logic.


Created by Anura Rohana

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors