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

CAs: Adding interactive functions via HTML buttons #33

Open
bramvandijk88 opened this issue Mar 15, 2018 · 0 comments
Open

CAs: Adding interactive functions via HTML buttons #33

bramvandijk88 opened this issue Mar 15, 2018 · 0 comments

Comments

@bramvandijk88
Copy link

bramvandijk88 commented Mar 15, 2018

Heya,

Using terra.js, I just made a simple predator prey CA that results in traveling/chaotic waves:

http://theoreticalbiology.nl/spiders/

I'm looking to extend this by allowing interactive functions, such as killing some prey, killing some predators, restarting, etc. The default terrarium functions .animate() and .stop() function propperly. How can I add new functions to this terrarium?

I tried figuring out how to do this in the terra.js module, which sort of worked, but I'm looking for advice on how to do this "neatly" in javascript.

UPDATE: i've mostly overwritten the old version, so most of the functionality I discuss here is now implemented.

Bram

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

No branches or pull requests

1 participant