This is a simple implementation of the classic Rock Paper Scissors game, where a player competes against an AI opponent. The game is built using HTML, CSS, and JavaScript, providing an interactive web-based interface.
- Player can choose their hand (Rock, Paper, or Scissors) by clicking on the corresponding image.
- AI opponent randomly selects its hand.
- Game results are displayed after each round, showing both player and AI choices.
- Running score is kept, tracking the number of games played, wins, losses, and draws.
- Visual feedback is provided through color-coded results and highlighting of the player's selection.
- Select your hand by clicking on one of the provided options (Rock, Paper, or Scissors).
- Click the "LET'S PLAY" button to start the game.
- The AI will randomly choose its hand, and the result will be displayed.
- The game statistics will update automatically.
- Continue playing as many rounds as you like!
- Rock beats Scissors
- Scissors beats Paper
- Paper beats Rock
- If both players choose the same hand, it's a draw
- The game uses DOM manipulation to update the UI dynamically.
- Event listeners are used to handle player input and game flow.
- The AI's choice is randomized using JavaScript's Math.random() function.
- Game state and statistics are maintained using JavaScript objects.