639 B
639 B
Day 4: Notes
Star 1
- cellular automata
- Moore neighborhood
n - each cell is initially in state
sEMPTYORFILLED - counter
icounts taken cells FILLEDcellcgets accessible (becomesEMPTY) iffn(c) < 4s'(c):=EMPTYi' := i + 1
- Does grid keep frozen during checks? Aka is cell
x+1dependent on cellx? - 2D grid array should be
(x+2, y+2)instead of(x, y)so that edges don't go out of bounds, with first and last rows/columns being empty
Star 2
- cellular automata that refreshes and runs multiple times, until no more updates occur
- Bonus: Visualization using Ebitengine?