Rock, Paper, Scissors Game

A classic game with best-of-5 gameplay, written in pure Python

Project Description

A simple Rock, Paper, Scissors game written in pure Python, designed to be compatible with the Code in Place IDE (no external libraries required). The game is best of 5 rounds — the first to reach 5 wins is crowned the champion! 🏆

✨ Features

Classic Rules

Traditional Rock, Paper, Scissors gameplay with standard rules.

Best of 5

First to 5 wins instead of single round gameplay for more engaging matches.

Input Validation

Robust input validation for smoother gameplay experience.

Quit Anytime

Ability to quit the game at any time by typing quit.

Replay Option

Choose to play again after each match without restarting the program.

Terminal Only

Runs entirely in the terminal with no installation needed.

Standard Library

Uses only Python's standard library, fully compatible with Code in Place.

How to Play

Step 1: Run the Game

Execute the script in your terminal:

python main.py

Step 2: Enter Your Move

Type one of the following options:

  • rock
  • paper
  • scissors

Step 3: Game Example

Round 1
Enter your move (rock, paper, scissors):
rock
Computer chose: scissors
✅ You win this round!
Score → You: 1 | Computer: 0

Round 2
Enter your move (rock, paper, scissors):
paper
Computer chose: scissors
❌ Computer wins this round!
Score → You: 1 | Computer: 1

Step 4: Win the Match

First to 5 points wins the match!

Step 5: Play Again

After the game ends, choose whether to play again or exit.

Fairness & Randomness

The game ensures fair play through truly random computer moves:

random.choice(["rock", "paper", "scissors"])
  • Each option (rock, paper, scissors) has equal probability
  • No bias towards any particular move
  • Statistically balanced distribution over many rounds

Requirements

  • Python 3.x
  • Works in Code in Place IDE and standard Python environments
  • No third-party libraries needed

Future Improvements

More Moves

Add lizard and spock moves for extended gameplay

Match History

Track and display match history and statistics

Score Display

Show progress bar style score display

Multiplayer Mode

Add local multiplayer functionality