Skip to content

aggarwal-tanushree/rock-paper-scissors-python

Repository files navigation

Rock, Paper, Scissors Game

A modern 2D implementation of the classic Rock, Paper, Scissors game built with Python and Pygame, featuring personalized gameplay and enhanced visuals.

Game Rules

  • Rock beats scissors
  • Scissors beat paper
  • Paper beats rock

Features

  • Personalized gameplay with player name input
  • Modern UI with subtle color scheme for both light and dark themes
  • Interactive elements with hover effects and animations
  • Score tracking across multiple rounds
  • Simple mouse and keyboard controls
  • End-game summary with personalized results

Requirements

  • Python 3.6 or higher
  • Pygame 2.5.2 or higher

Installation

  1. Clone or download this repository
  2. Install the required dependencies:
pip install -r requirements.txt

How to Play

  1. Run the game:
python main.py
  1. Enter your name when prompted
  2. Click on one of the colored squares to make your choice:
    • Red square: Rock
    • Green square: Paper
    • Blue square: Scissors
  3. After seeing the result, click:
    • "Play Again" button to play another round
    • "End Game" button to end the game
  4. On the end screen, click:
    • "Restart" button to restart the game
    • "Quit" button to exit

Controls

  • Mouse: Select options, enter name, and navigate through the game
  • Keyboard: Type your name in the input screen
  • Y/N keys: Alternative to continue or end the game after each round
  • R/Q keys: Alternative to restart or quit from the end screen

Game Structure

  • main.py: Contains the main game logic and implementation
  • game_specs.txt: Detailed specifications of the game
  • requirements.txt: Lists required dependencies

License

This project is open source and available for personal and educational use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages