Skip to content

Conversation

DEVANSH-GAJJAR
Copy link
Contributor

Summary

This PR adds a simple Rock, Paper, Scissors game implemented in Python (CLI version).
The game allows the user to input their choice, generates a random choice for the computer,
and then decides the winner based on standard rules.

Features

  • User can choose rock, paper, or scissors (case-insensitive).
  • Computer choice is randomly generated.
  • Game logic decides winner or declares a tie.
  • Input validation with recursive re-prompt on invalid input.
  • Clean and simple code with PEP8 compliance.
  • Added docstring header for clarity.

File Added

  • rock_paper_scissors.py

Related Issue

Resolves #2831

@geekcomputers geekcomputers merged commit 0378014 into geekcomputers:master Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python program
2 participants