Skip to content

This is a simple Stone-Paper-Scissors game where users can play against the computer. The game uses HTML, CSS, and JavaScript to generate random computer choices and display the result through an alert.

Notifications You must be signed in to change notification settings

imprince2396/Basic-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This is a simple Stone-Paper-Scissors game where users can play against the computer. The game uses HTML, CSS, and JavaScript to generate random computer choices and display the result through an alert.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published