Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Rock-Paper-Scissors Game Algorithm in Python #442

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Madhuj275
Copy link

Description:
This pull request adds a Python script that implements the classic Rock-Paper-Scissors game algorithm. The program allows a user to play against the computer, with the computer's choice generated randomly.

Features:

  • User Input: Allows the user to input their choice (rock, paper, or scissors).
  • Computer Choice: Randomly generates the computer's choice using Python's random module.
  • Winner Determination: Compares the choices and follows the standard rules:
    • Rock beats Scissors
    • Scissors beats Paper
    • Paper beats Rock
  • Replay Option: Prompts the user to play again after each round.

Testing:
Basic test cases have been verified to ensure correct winner determination for each possible combination of choices.

Notes:
Future improvements could include adding a scoring system, a graphical interface, or more complex game logic.

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.

1 participant