A python package with different games
Project description
python-games
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
Release history Release notifications | RSS feed
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.0.tar.gz
(3.0 kB
view details)
File details
Details for the file python-games-1.0.0.tar.gz.
File metadata
- Download URL: python-games-1.0.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f808cb436214575b9ab4242de559a792f919f575f855bfd660638677372fc3e1
|
|
| MD5 |
0e8e68359278190c45c9008add2b2a77
|
|
| BLAKE2b-256 |
844ba024be5d4e450b14db49e9ec4318600686fb518e93f29d2799ced8cd7ba8
|