Skip to main content

Reworking of xyppy

Project description

xyfny - a z-machine intepreter

This is based closely upon theinternetftw's xyppy.

Where that is geared towards an interactive simulation of a good ol'-fashioned Z-machine experience, this is intended to be plugging into event-driven systems (for instance, chat systems like Slack).

All of the terminal handling is stripped out. Rather, the z-machine runs until it attempts to read input from the user. At that point, it'll exit with an interrupt - unless there is user input pending in its buffer.

The basic gist of how this might be used:

# Initialise
env = make_env(file)
intro = do_step(env, line)

# Output the introductory text to the user
output(intro)

# On receiving an input event from the user:
response = do_step(env, event_text)
output(response)

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xyfny, version 0.0.11
Filename, size File type Python version Upload date Hashes
Filename, size xyfny-0.0.11-py3-none-any.whl (38.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size xyfny-0.0.11.tar.gz (33.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page