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
Close
Hashes for rockpaperscissors2333-1.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c152be6a17d88a7984509d53d676b3920b06e2bc66cb14b6dae760c93e76e09 |
|
MD5 | 4942f5115ae9c52b18b10e736d1ae738 |
|
BLAKE2b-256 | 2496c01ec1fe7b07c92bda88c0f08b322a1fedce3689f6fe846bc4be05c8afc7 |
Close
Hashes for rockpaperscissors2333-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24398793946f654bf3caf0445ef27ab44fa296cc7e660af9ba06658a0d09a329 |
|
MD5 | e2a7a0a07ff6a84384f468462a7c4683 |
|
BLAKE2b-256 | 96f93d1dd6024709c1da9a97e837f15a6c095aa384d85a108969cc44100c22b4 |