Skip to content

A graphical Rock, Paper, Scissors game built with Python and Tkinter. Features dynamic themes, scorekeeping, and reset functionality. Beginner-friendly and customizable!

License

Notifications You must be signed in to change notification settings

rahul-prasad04/Rock-Paper-Scissors-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

This is a graphical version of the classic "Rock, Paper, Scissors" game built using Python and the Tkinter library. It includes features like a dark/light theme toggle, a reset button, and dynamic scorekeeping. This fun and interactive game is beginner-friendly and customizable.

Features

  • Rock, Paper, Scissors Gameplay: Play against the computer in real-time.
  • Dynamic Theme Toggle: Switch between Dark and Light modes with the click of a button.
  • Reset Game: Reset the scores and game state anytime during the game.
  • Score Tracking: Displays the player's and computer's scores dynamically.

Screenshots

game

How to Run the Game

Prerequisites

  1. Python 3.x installed on your system.
  2. Required libraries:
    • tkinter
    • Pillow

Installation Steps

  1. Clone this repository to your local machine:
    git clone https://github.com/your-username/rock-paper-scissors-game.git
  2. Navigate to the project directory:
    cd rock-paper-scissors-game
  3. Ensure you have the required dependencies installed:
    pip install pillow
  4. Run the script:
    python rock_paper_scissors.py

File Structure

  • rock_paper_scissors.py: Main game script.
  • rock-user.png: Image of the rock for the user.
  • paper-user.png: Image of the paper for the user.
  • scissors-user.png: Image of the scissors for the user.
  • rock.png: Image of the rock for the computer.
  • paper.png: Image of the paper for the computer.
  • scissors.png: Image of the scissors for the computer.

How to Play

  1. Launch the game by running the Python script.
  2. Select your move by clicking one of the buttons: Rock, Paper, or Scissors.
  3. The computer will randomly select its move.
  4. The result (Win, Lose, or Tie) will be displayed, and the scores will update accordingly.
  5. Use the Reset Game button to reset the game scores.
  6. Toggle between Dark and Light themes using the Toggle Theme button.

Demo video

Demo.Video.of.the.Rock.Paper.Scissor.Game.mp4

Customization

  • You can replace the .png images with your own images to personalize the game.
  • Modify the theme colors in the themes dictionary to suit your preferences.
  • Add sound effects using the pygame library for a more immersive experience.

License

This project is open-source and available under the MIT License.

Author

Developed by Rahul Prasad

Feel free to fork this project, submit pull requests, or open issues for any suggestions or improvements!

About

A graphical Rock, Paper, Scissors game built with Python and Tkinter. Features dynamic themes, scorekeeping, and reset functionality. Beginner-friendly and customizable!

Topics

Resources

License

Stars

Watchers

Forks

Languages