-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Some choices of names could be improved. If "rules" was an object describing the rules to be followed, we could write:
children = sciencesays.swarm(parameters)
children.follow(rules)
Still not sure how to code the rules object though. Probably by inheritance!
class rules(basics):
And i think we can merge the plotting and the animation into one method:
children.play(N=100) # Make movie of 100 time steps
children.play(N=100,animate=False) # Evolve for 100 steps and plot statically