Skip to content

A Python implementation of the classic Rock Paper Scissors game featuring both command-line and GUI versions. Built with Tkinter for the graphical interface, includes score tracking, visual feedback with emojis, and milestone notifications.

Notifications You must be signed in to change notification settings

joebertcerezo/rock-paper-scissors-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

This repository contains two versions of a Rock Paper Scissors game:

Files

  1. rock_paper_scissors.py - Command-line version
  2. rock_paper_scissors_gui.py - GUI version using Tkinter

Features

Command-Line Version

  • Interactive text-based gameplay
  • Score tracking for player and computer
  • Input validation
  • Final score summary

GUI Version

  • Modern graphical interface using Tkinter
  • Visual feedback with emojis
  • Real-time score tracking
  • Milestone notifications
  • Reset and quit functionality
  • Colorful buttons for each choice

How to Run

Prerequisites

  • Python 3.6 or higher
  • Tkinter (usually included with Python)

Command-Line Version

python3 rock_paper_scissors.py

GUI Version

python3 rock_paper_scissors_gui.py

Game Rules

  • Rock beats Scissors
  • Scissors beats Paper
  • Paper beats Rock
  • Same choices result in a tie

GUI Features

  • Visual Choice Display: See both your choice and the computer's choice with emojis
  • Score Tracking: Real-time score updates for both player and computer
  • Milestone Alerts: Get notifications when you reach 5 or 10 wins
  • Reset Function: Start over with a clean score
  • Confirmation Dialogs: Prevents accidental resets or quits

Troubleshooting

If you encounter issues running the GUI version:

  1. Python not found: Make sure Python 3 is installed and try python3 instead of python
  2. Tkinter not available: Install tkinter with your package manager (usually included with Python)
  3. macOS compatibility: If you get version errors, try updating your system or use the command-line version

Enjoy playing Rock Paper Scissors!

About

A Python implementation of the classic Rock Paper Scissors game featuring both command-line and GUI versions. Built with Tkinter for the graphical interface, includes score tracking, visual feedback with emojis, and milestone notifications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages