andrewpenland / CAExperiment

2 stars 2 forks source link

take function as well as rule table or rule number #7

Open andrewpenland opened 6 years ago

andrewpenland commented 6 years ago

Make it so that CA can be constructed based on functions instead of rule number. This can be done with construct_CA_from_function command.

i.e. if we give the CA the function defined by def f(x*): x[0]&x[1]&x[2]

Then we should be able to construct a CA using f by construct_CA_from_function(f), and it will return a CA that is based on that.