Skip to content

Saravanarajan29/Rock-Paper-Scissor-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors Game

Game Preview

Overview

This is a simple implementation of the classic Rock-Paper-Scissors game using HTML, CSS, and JavaScript.

How to Play

1.Clone this repository or download the files.

2.Open the index.html file in your web browser.

3.Click on one of the three buttons: Rock, Paper, or Scissors.

4.The computer will randomly select its choice.

5.The result of the game will be displayed on the screen.

Files

index.html: Contains the structure of the game and links to the CSS and JavaScript files.

styles.css: Stylesheet for the game.

main.js: JavaScript file containing the game logic.

Game Logic

The game logic is implemented in the main.js file. It involves generating a random choice for the computer, comparing it with the player's choice, and determining the winner based on the rules of Rock-Paper-Scissors.

Technologies Used

  • HTML: Used for structuring the web page.
  • CSS: Used for styling the web page and making it responsive.
  • JavaScript: JavaScript file containing the game logic

Credits

This game was created by Saravanarajan.

About

This is a simple implementation of the classic Rock-Paper-Scissors game using HTML, CSS, and JavaScript.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages