Skip to main content

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

  1. game.rules() Will display the rules of the game

  2. game.Game('name').game(count:int) Count -> The number of times you want to play the game with PC

  3. game.Game('name').clear_score() Will clear the score (initialise the score back to 0)

  4. game.Game('name').display_result() Will display the result of the game.

  5. 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)

Source distribution for spsgamepkg 0.0.2
File Size Uploaded
spsgamepkg-0.0.2.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spsgamepkg 0.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page