A simple Rock, Paper, Scissors game.
Project description
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5d63fe94c30be5fae6b8699e46ebffa6c3859cbcc975f6739be8e3ee6db5fb3
|
|
| MD5 |
bcc9e677838289dcd2d2a35afa50378d
|
|
| BLAKE2b-256 |
7b8af24fb09d7a91a810d280b2c8c6f5d7927cd18908b187ee5bc2e4603b971e
|
File details
Details for the file rockpaperscissors2333-1.0.6-py3-none-any.whl.
File metadata
- Download URL: rockpaperscissors2333-1.0.6-py3-none-any.whl
- Upload date:
- Size: 28.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b56d46a76b1fd6ffe21e039f407a33ce3364aa946dc6c10b6cb44ea08eadde20
|
|
| MD5 |
e1ca9e8c8b7710e80d4ec0c6903324c1
|
|
| BLAKE2b-256 |
3bbb0d42bfd887a7bbee453477726710b73971fc6e074d1e1a82d9795c68a4e8
|