Skip to main content

A simple Rock, Paper, Scissors game.

Project description

CI / CD

Rock Paper Scissors Game

A simple, interactive Rock, Paper, Scissors game implemented in Python. This package allows users to play against the computer or simulate a game between two computer-controlled players.

Installation

You can install the Rock Paper Scissors game using pip: pip install rockpaperscissors2333

Usage

Play against the computer

To play against the computer, run: play To simulate a play between a human and computer, run: simulate To reset the score board, run: reset_scoreboard

Code Snippet

from rockpaperscissors2333.cli import play, simulate
from rockpaperscissors2333.game import reset_scoreboard

while True:
    print("Welcome to Rock, Paper, Scissors!")
    print("1. Play against the computer")
    print("2. Simulate a game between two players")
    print("3. Reset the scoreboard")
    print("4. Quit")
    choice = input("Enter the number of your choice: ")
    if choice == "1":
        play()
    elif choice == "2":
        simulate()
    elif choice == "3":
        reset_scoreboard()
    elif choice == "4":
        break
    else:
    print("Invalid choice. Please try again.")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rockpaperscissors2333-1.0.9.tar.gz (40.6 kB view hashes)

Uploaded Source

Built Distribution

rockpaperscissors2333-1.0.9-py3-none-any.whl (29.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page