the python rpg toolkit
Project description
RPGTK
Role-Playing Game Toolkit is a platform for build Python RPG's systems.
Installing
Install and update using pip:
$ pip install -U rpgtk
A simple example
# dice.py
from rpgtk import Dice
dice = Dice(sides=20)
dice.roll()
print(dice)
python dice.py
'D20[6]'
# advantage roll
from rpgtk import Dice
dice = Dice(sides=20)
advantage_roll = max(dice * 2)
print(advantage_roll)
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
rpgtk-0.4.1.tar.gz
(4.3 kB
view details)
Built Distribution
rpgtk-0.4.1-py3-none-any.whl
(5.8 kB
view details)
File details
Details for the file rpgtk-0.4.1.tar.gz
.
File metadata
- Download URL: rpgtk-0.4.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
66811917fedbc4794cc4fe97a9700e77241b81c01ed4f58c0ee42427c8fa052f
|
|
MD5 |
2741382fd1615fd0d1bca3defdc66c85
|
|
BLAKE2b-256 |
af590d64e2ab66bcb6a33ba61907a9f40384dc77ec0b9b2197ef2a056ebda264
|
File details
Details for the file rpgtk-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: rpgtk-0.4.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9654bebfd147ac1b0f609424fb50629d261c375e2966e8451663d461eaec0827
|
|
MD5 |
0be2fda7c8f869a2b34f1cd1acde7816
|
|
BLAKE2b-256 |
1bf330a637cee9cd28fcc2344f3e0dbb17b2c8a675591f8c9e380b72be311ad1
|