Rock Paper Scissors - a basic program to play rock,paper,scissors with PC
A fun Python package to play rock paper scissors with PC
This is just a basic stress-buster game module to play with your PC Created by Aswin Venkat aswinvenk8@gmail.com
Installation
Run the following to install:
pip install spsgamepkg
Methods
-
game.rules() Will display the rules of the game
-
game.Game('name').game(count:int) Count -> The number of times you want to play the game with PC
-
game.Game('name').clear_score() Will clear the score (initialise the score back to 0)
-
game.Game('name').display_result() Will display the result of the game.
-
game.Game('name').condition(pc='', player='') entering ['stone' or 'paper' or 'scissors'] in pc='{}' and player='{}' will directly give you the result
EXAMPLE CODE
from spsgamepkg import game
# Display rules
>> game.rules()
# initialize player
aswin_game=game.Game('Aswin')
# Play a game
>> aswin_game.game(5)
# Display Result
>> aswin_game.display_result()
# Reset the scores
>> aswin_game.clear_score()
Metadata
Release files for spsgamepkg 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spsgamepkg-0.0.2.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spsgamepkg-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / spsgamepkg-0.0.2.tar.gz
| Download URL | spsgamepkg-0.0.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d29efdff5092a606b65e9e428078b926643562678fce5404311535eea6cb8a5f
|
|
BLAKE2b-256 checksum How to use checksums |
4d4dab96453ceba881e42da1ad250d8f38be0b532f0b5a40e4d52b0bfbe11597
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Release files / spsgamepkg-0.0.2-py3-none-any.whl
| Download URL | spsgamepkg-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45e305471016cfaf3098b9100e653f344a1216fad336149927e60e8f3791ca04
|
|
BLAKE2b-256 checksum How to use checksums |
e0f7641e28dd6cdafeacfeb8309af69a8ee37c57d6553617c21e54fcb71d2fc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|