Skip to content

KaranKathur06/RPS-GAME-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

Overview

This is a simple Rock Paper Scissors game, where players can challenge the computer. The game follows the classic rules:

  • Rock beats Scissors
  • Scissors beats Paper
  • Paper beats Rock

Each round, the player selects one of the three choices, and the computer randomly selects one as well. The game will declare the winner of the round.

Features

  • Playable against the computer
  • Randomized computer moves
  • Win, lose, or draw outcomes
  • Simple and interactive UI

Getting Started

Prerequisites

To run this game locally, you'll need the following:

  • A modern web browser (if the game is built for web)
  • Python (if this is a Python-based game)
  • Basic knowledge of how to use a terminal (if required)

Installation

Web Version

  1. Clone this repository:
    git clone https://github.com/your-username/rock-paper-scissors.git
  2. Navigate to the project directory:
    cd rock-paper-scissors
  3. Open the index.html file in your web browser, or start a local server if needed:
    open index.html
    or if using a local server like Python:
    python3 -m http.server

Python Version

  1. Clone this repository:
    git clone https://github.com/your-username/rock-paper-scissors.git
  2. Navigate to the project directory:
    cd rock-paper-scissors
  3. Run the game:
    python3 game.py

How to Play

  1. Choose Rock, Paper, or Scissors from the options presented on the screen (or enter it in the terminal if playing a CLI-based version).
  2. The computer will then randomly select its choice.
  3. The result of the round will be displayed, showing whether you won, lost, or it was a draw.
  4. You can continue playing for as many rounds as you'd like.

Rules

  • Rock beats Scissors.
  • Scissors beats Paper.
  • Paper beats Rock.

Screenshots

Include screenshots of the game here.

Technologies Used

  • HTML, CSS, JavaScript (for web version)
  • Python (for Python version)

Future Enhancements

  • Add a scoring system to track wins, losses, and draws.
  • Implement multiplayer functionality.
  • Improve the UI with animations.
  • Add sound effects for better interactivity.

Contributing

Feel free to fork this project and submit pull requests for new features or bug fixes. All contributions are welcome!

License

This project is licensed under the MIT License - see the LICENSE file for details.