Skip to content

A beginner-friendly, console-based Rock-Paper-Scissors game built with vanilla JavaScript. Play against the computer with real-time results and fun logic. Great for practicing functions, conditionals, and randomness in JavaScript.

Notifications You must be signed in to change notification settings

myasirweb/RockPaperScisoreGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸͺ¨ Rock-Paper-Scissors Game – HTML & JavaScript

This project is a simple yet fun Rock-Paper-Scissors game built using vanilla JavaScript and HTML. It allows a user to play against the computer with randomly generated choices and logic to determine the winner. Designed for beginners learning JavaScript functions, conditionals, and DOM interaction.


🎯 Features

  • User vs. Computer gameplay
  • Randomized computer choice using Math.random()
  • Basic conditional logic to determine the winner
  • Console-based output for easy testing
  • Includes a secret "bomb" cheat code for instant win

πŸ“¦ Technologies Used

  • HTML5 – Page structure
  • JavaScript (ES6+) – Game logic, randomization, and conditionals

πŸ› οΈ How to Use

  1. Clone or download this repository:
git clone https://github.com/your-username/rock-paper-scissors-js.git

About

A beginner-friendly, console-based Rock-Paper-Scissors game built with vanilla JavaScript. Play against the computer with real-time results and fun logic. Great for practicing functions, conditionals, and randomness in JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages