Rock, Paper, Scissors

Welcome to the Rock, Paper, Scissors page.

This page contains a brief description and implementation instructions for the project.

Project Description

A hand game where the user plays against the computer. The user chooses “rock”, “paper”, or “scissors”, and the computer randomly picks one. The winner is decided by the standard rules (rock beats scissors, scissors beats paper, paper beats rock).

Project Requirements

Python 3.x (built-in random module).

How to Run the Project

  1. Create a script (e.g. rps.py) that asks the user for a choice and randomly picks the computer’s choice using random.choice or random.randint.
  2. Run it: python rps.py.
  3. Enter your choice (rock, paper, or scissors) when prompted; the program outputs the result of each round.

Key Concepts Learned

Conditional logic for comparing user and computer choices, using random for the computer’s move, loops to allow repeated play, and basic string handling. This project reinforces decision-making code and random selection.

Possible Extensions

Track and display score for multiple rounds; add “lizard” and “Spock” for an extended version; let the user play best-of series; add input validation (ignore invalid inputs).

Troubleshooting & Debugging

See Troubleshooting & Debugging.

← Back to Python Programming Page