A simple and interactive Rock-Paper-Scissors game built using HTML, CSS, and JavaScript. Play the classic hand game against the computer right in your browser!
This project demonstrates basic web development skills including DOM manipulation, event handling, and CSS styling. It’s perfect as a beginner-friendly coding project or as a fun game to expand later with new features.
Rock-Paper-Scissors is a classic hand game where:
- Rock beats Scissors
- Scissors beats Paper
- Paper beats Rock
The player chooses one option, and the computer randomly selects one. The winner is decided based on these rules. :contentReference[oaicite:0]{index=0}
✔️ Play against a computer opponent
✔️ Randomized computer choices
✔️ Simple, clean UI
✔️ Interactive gameplay without page reload
The game logic is written in JavaScript. When a player chooses Rock, Paper, or Scissors, the script:
- Generates a random choice for the computer
- Compares both choices
- Displays the result (win / lose / draw)
- 🌐 HTML
- 🎨 CSS
- 💻 JavaScript
This repository is licensed under the Apache License 2.0 — see the LICENSE file for details.
Contributions, feedback and improvements are welcome!
Enjoy playing and coding! 🎉