Skip to content

Conversation

@Flameeyes
Copy link

Since most of the callbacks do not rely on the local variables at all,
there's little value in using locally defined callbacks over instance
methods.

This enables the ability to save and restore the state of the game even
in the middle of a question (including the initial "WOULD YOU LIKE
INSTRUCTIONS?")

While this is not generally possible in the normal play, this change
enables using this implementation of python-adventure in ephemeral
environments where players bring their own state.

Since most of the callbacks do not rely on the local variables at all,
there's little value in using locally defined callbacks over instance
methods.

This enables the ability to save and restore the state of the game even
in the middle of a question (including the initial "WOULD YOU LIKE
INSTRUCTIONS?")

While this is not generally possible in the normal play, this change
enables using this implementation of python-adventure in ephemeral
environments where players bring their own state.
@brandon-rhodes
Copy link
Owner

As this isn’t a currently active project for me, it might be some time before I can sit down and do a code review — and compare this new behavior to the original FORTRAN. But I’m happy to keep this PR open until my other projects offer some spare time to come back and look at this one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants