Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix global variables #21

Open
svenpruefer opened this issue Sep 3, 2017 · 0 comments
Open

Fix global variables #21

svenpruefer opened this issue Sep 3, 2017 · 0 comments

Comments

@svenpruefer
Copy link
Collaborator

Find a good solution for global variables for the AIs in order to preserve some knowledge for after an AI run.

In Mathecamp 2017, some players used globals() or similar hacks. It might be better and easier for new python developers to just predefine a list variablesToKeep which they can append as they wish.

Also, we could make that list non-empty by default and this way have an easy interface for the AIs to give some information to the main program. For example this could be individual player seekers names to display, some debugging data, a message to the fans or a war cry of a seeker right before it is hitting an enemy seeker :-)

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

No branches or pull requests

1 participant