Lab15 --2DArrays.pdf

Lab 15 2D Arrays and Cellular Automata
After watching the video for Thursday’s class, you may develop your own matrix based graphical
patterns.
We will develop the “Mod2” rule in class, where
Current Pattern
Next state for
center cell
111
0
110
1
101
0
100
1
011
1
010
0
001
1
000
0
OPTION 1: Implement Rule 30:
OPTION 2: Implement the Game of Life Animation described at the following link:
http://en.wikipedia.org/wiki/Cellular_automaton
OPTION 3: Write a number of loops to fill the matrix with your own initials. Then, onMouseClick, have
them shift one square to the right. Do the same for onMouseDrag and you will have a simple animation.
Or put a pause in your code and have a self running animation.
This assignment is very open ended, feel free to explore other interests you may have in 2D matrix
graphics.
Further Reference:
http://demonstrations.wolfram.com/CoupledCellularAutomataSymbioticPatternsAndSynchronization/
http://demonstrations.wolfram.com/CoupledCellularAutomataSymbioticPatternsAndSynchronization/
http://hal.archives-ouvertes.fr/docs/00/24/66/97/PDF/ajp-jp1v2p2221.pdf