The Wolfram Demonstrations site is filled with fun, educational, and code-ucational (all the source code is free!) Demonstrations. What’s a Demonstration? It’s an interactive pane generated by the Manipulate function in Mathematica. If you’re interested in A New Kind of Science, or just complexity science in general, the NKS/WolframScience section of the Demonstrations site is filled with code that will help make your research go a heck of a lot more smoothly.
I figured I’d post about some interesting, educational, or just plain beautiful NKS-related Demonstrations from time-to-time. Today, we’re exploring the “Cellular Automaton Explorer,” a Demonstration written by Stephen Wolfram.
the Cellular Automaton Explorer
Here’s a screen shot of the Explorer at work:
Here we see that you can specify the number of colors, the range (1/2 means just the active cell and one neighbor, 1 means the active cell and a neighbor to each side of it, and so forth), the rule type, the initial condition, the rule number (remember, the total number of rules changes with color, range, and rule type!), the amount of steps to evolve, the colors to map, and a few other options.
Certainly something with so much functionality must have code that’s at least 100 lines long, right?
In fact, the code is so short that I could include it with a simple screen shot: