Skip to content

samuelegin/Rock-paper-scissors-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors

Welcome to the Rock Paper Scissors project! This is a simple web-based game where you can play Rock Paper Scissors against the computer.

Table of Contents

Project Structure

The project is structured as follows:

  • Assets/: Contains assets like images and stylesheets.
    • Assets/Scss/Main.css: The main stylesheet for the game.
    • Assets/Images/: This directory holds images for rock, paper, and scissors.
  • Assets/Scripts/main.js: The JavaScript code for the game logic. deprecated
  • index.html: The main HTML file that defines the game's structure and layout.
  • src/index.ts: The TypeScript code for the game logic.

How to Play

  1. Open index.html in your web browser.
  2. Click on either "Rock," "Paper," or "Scissors" to make your choice.
  3. The computer will make its choice.
  4. The result will be displayed on the screen, indicating whether you won, lost, or tied the round.
  5. The round number is displayed at the top.

Contributing

We welcome contributions from the community. To contribute, please follow these steps:

  1. Fork the repository to your own GitHub account.
  2. Clone the forked repository to your local machine.
git clone https://github.com/samuelegin/rock-paper-scissors-game.git
sass <input>.scss <output>.scss -w
tsc -w