Skip to main content

A python package with different python games

Project description

python-games

GitHub Dowloads

Installing

# Linux/macOS
python3 -m pip install -U python-games

# Windows
py -3 -m pip install -U python-games

# Github
pip install git+https://github.com/kevys/python-games.git@main

Quick Example

import games

c = input("Choose rock, paper or scissor > ")

output = games.rps(c)

if output[2] is False:
    print(f'Loser, You picked {output[0]}, AI picked {output[1]}')
elif output[2] is True:
    print(f'Winner, You picked {output[0]}, AI picked {output[1]}')

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

python-games-1.0.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file python-games-1.0.1.tar.gz.

File metadata

  • Download URL: python-games-1.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for python-games-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c330c59a008f8191395bc0ad69b237026d876a06754b5031b7884e9adc81682c
MD5 8c8e2aeba2c5e59df29c05a78ddaf267
BLAKE2b-256 8bfef6677ee73a1b1d7902818dd1aef78c3a1f9997c6d01a23da2e2a5129549d

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