Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

A simple interactive Rock Paper Scissors game built with HTML, CSS and JavaScript.

The player can choose between rock, paper or scissors while the computer randomly selects its move.
The result of each round is displayed and the score is tracked during the game.

Features

  • Player selection using clickable buttons
  • Random computer choice
  • Round result display (win, lose or draw)
  • Score tracking
  • Simple and interactive user interface

How It Works

  1. The player selects rock, paper, or scissors
  2. JavaScript generates a random number between 1 and 3
  3. The number represents the computer's choice
  4. The result of the round is calculated
  5. The score is updated and displayed on the screen

Technologies

  • HTML
  • CSS
  • JavaScript

What I Learned

  • Using addEventListener for user interaction
  • Generating random values with Math.random()
  • Implementing simple game logic
  • Updating the UI dynamically with JavaScript
  • Basic DOM manipulation
  • Tracking and updating scores

Possible Improvements

  • Add sound effects
  • Add a reset button
  • Improve UI styling

Author

Software engineering student at ITS

Screenshots

Image

About

Simple Rock Paper Scissors game built with HTML, CSS and JavaScript.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages