Skip to main content

Stone Paper Scissors - a basic program to play rock,paper,scissors with PC

Project description

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 stonepaperscissorsgamepkg

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 src.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()

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

spsgamepkg-0.0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

spsgamepkg-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file spsgamepkg-0.0.1.tar.gz.

File metadata

  • Download URL: spsgamepkg-0.0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for spsgamepkg-0.0.1.tar.gz
Algorithm Hash digest
SHA256 62ae6bb94939ddcc8d5bb262b1d4e145d1f972e856cd49174f6f1d9926b73e36
MD5 ed27533ad1d8d788a97ad73ccd9ca9e4
BLAKE2b-256 3b5dd30f5608af9ac006692265d2ac6c8479b4cfed68f2997be4f44864a76b0c

See more details on using hashes here.

File details

Details for the file spsgamepkg-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: spsgamepkg-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for spsgamepkg-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5e07ccfd81184488ac830469dd6ca77ea973c498169e2198884e16cdd1a139b
MD5 8a90c10f851fe1fa1b3c3e6fa767fa43
BLAKE2b-256 5c37e213821da0618605aecb29b1d15bf1d452f5bbc71db6285aaa974e76649d

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