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.6.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rockpaperscissors2333-1.0.6-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file rockpaperscissors2333-1.0.6.tar.gz.

File metadata

  • Download URL: rockpaperscissors2333-1.0.6.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for rockpaperscissors2333-1.0.6.tar.gz
Algorithm Hash digest
SHA256 c5d63fe94c30be5fae6b8699e46ebffa6c3859cbcc975f6739be8e3ee6db5fb3
MD5 bcc9e677838289dcd2d2a35afa50378d
BLAKE2b-256 7b8af24fb09d7a91a810d280b2c8c6f5d7927cd18908b187ee5bc2e4603b971e

See more details on using hashes here.

File details

Details for the file rockpaperscissors2333-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for rockpaperscissors2333-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b56d46a76b1fd6ffe21e039f407a33ce3364aa946dc6c10b6cb44ea08eadde20
MD5 e1ca9e8c8b7710e80d4ec0c6903324c1
BLAKE2b-256 3bbb0d42bfd887a7bbee453477726710b73971fc6e074d1e1a82d9795c68a4e8

See more details on using hashes here.

Supported by

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