AshrafAKRahman / RPS

RPS using Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rock Paper Scissors Game

This is a web-based implementation of the classic game Rock Paper Scissors, created using JavaScript and styled with CSS where the user can play against a computer and the score is saved and tallied.

How to Play

When playing against the computer, the user selects their move by clicking on the corresponding button for rock, paper, or scissors. The computer's move is then generated randomly.

The game then determines the winner based on the following rules:

Rock beats scissors Scissors beats paper Paper beats rock The game keeps track of the score, displaying the number of wins, losses, and ties for each player.

Files Included

index.html - the main HTML file for the game script.js - the JavaScript code for the game logic styles.css - the CSS file for styling the game interface Getting Started To play the game, simply open the index.html file in a web browser.

Tech stack

  • JavaScript - programming language used for game logic
  • CSS - styling language used for game interface

Author

About

RPS using Javascript


Languages

Language:CSS 52.1%Language:JavaScript 24.5%Language:HTML 23.4%