Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.01 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.01 KB

Stone-Paper-Scissors Game

This is a simple Stone-Paper-Scissors game built using HTML, CSS, and JavaScript. The user plays against the computer by selecting one of the three options—stone, paper, or scissors—and the computer randomly makes a choice. The result is then displayed via an alert.

Features

  • User can select between stone, paper, and scissors.
  • The computer makes a random choice each time.
  • Alerts the user with the final result (win, lose, or draw).
  • Clean and minimal interface.

Technologies Used

  • HTML: To structure the game interface.
  • CSS: For styling the buttons and overall layout.
  • JavaScript: To handle user input, generate random computer choices, and determine the result.

How to Play

  1. Open the game in your browser.
  2. Choose either stone, paper, or scissors by clicking the respective button.
  3. The computer will randomly choose its option.
  4. The result will be displayed via an alert, showing whether you won, lost, or draw.