Skip to content

Literate programming #4

@drphilmarshall

Description

@drphilmarshall

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

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions