adventurelib-1.2.1
توضیحات
Easy text adventures
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | adventurelib-1.2.1 |
| نام | adventurelib |
| نسخه کتابخانه | 1.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daniel Pope |
| ایمیل نویسنده | mauve@mauveweb.co.uk |
| آدرس صفحه اصلی | https://github.com/lordmauve/adventurelib |
| آدرس اینترنتی | https://pypi.org/project/adventurelib/ |
| مجوز | - |
# adventurelib
[
](https://travis-ci.org/lordmauve/adventurelib)
[](https://adventurelib.readthedocs.io/en/latest/?badge=latest)
`adventurelib` provides basic functionality for writing text-based adventure
games, with the aim of making it easy enough for young teenagers to do.
The foundation of adventurelib is the ability to define functions that are
called in response to commands. For example, you could write a function to
be called when the user types commands like "take hat":
@when('take THING')
def take(thing):
print(f'You take the {thing}.')
inventory.append(thing)
It also includes the foundations needed to write games involving rooms, items,
characters and more... but users will have to implement these features for
themselves as they explore Python programming concepts.
## Installing
`adventurelib.py` is a single file that can be copied into your project. You
can also install it with pip:
pip install adventurelib
## Documentation
[Comprehensive documentation is on Read The Docs.](http://adventurelib.readthedocs.io/)
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0.0 | backports.shutil-get-terminal-size |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl adventurelib-1.2.1:
pip install adventurelib-1.2.1.whl
نصب پکیج tar.gz adventurelib-1.2.1:
pip install adventurelib-1.2.1.tar.gz