Classic Rock Paper Scissors game vs computer with score tracking, animations and beautiful UI. Built with HTML, CSS and JavaScript.
https://rock-paper-scissors-five-inky.vercel.app
html css javascript rock-paper-scissors game browser-game random-logic score-tracking responsive-design vanilla-js
The classic Rock Paper Scissors game -- now with a modern web design! Play against the computer, track your score, and enjoy beautiful hand gesture animations.
Features random AI selection, score tracking (wins/losses/draws), and visual feedback for each round.
| Feature | Description |
|---|---|
| vs Computer | Random computer selection |
| Score Tracking | Win/Loss/Draw counter |
| Animations | Hand gesture animations |
| Responsive | Play on any device |
| Result Display | Who won each round |
| Visual Feedback | Color-coded outcomes |
| Quick Reset | Play again instantly |
| Instant Result | Immediate round feedback |
| You Choose | Beats | Loses To |
|---|---|---|
| Rock | Scissors | Paper |
| Paper | Rock | Scissors |
| Scissors | Paper | Rock |
HTML5 --> Game Layout, Choice Buttons
CSS3 --> Animations, Card Design, Responsive
JS --> Random Logic, Conditionals, Score State
const choices = ["rock", "paper", "scissors"];
function getComputerChoice() {
return choices[Math.floor(Math.random() * 3)];
}
function determineWinner(player, computer) {
if (player === computer) return "draw";
if ((player === "rock" && computer === "scissors") ||
(player === "paper" && computer === "rock") ||
(player === "scissors" && computer === "paper"))
return "player";
return "computer";
}git clone https://github.com/codewithshariqofficial/Rock-Paper-Scissors.git
cd Rock-Paper-Scissors
start index.htmlRock-Paper-Scissors/
|-- index.html
|-- js/
| |-- script.js
|-- styles/
| |-- style.css
|-- README.md
Code With Shariq Official