Cellular Automata: How to become an artist with a few lines of code
summary
Implements cellular automata in Scala with a Scala case class for cells, a board as a position→cell map, and an iterator that produces successive boards; concrete examples include Game of Life, Langton’s ant and a multicolor-ant variant whose colors mix, all available on GitHub and running in real time. Claims 90% of code is reusable and only ~10% is rule-specific, and using parallel map gives a large performance boost for independent cell updates.
AI-written summary · about
chapters (24)
- 0:00Cellular automata intro
- 1:53What are cellular automata
- 4:24History of cellular automata
- 6:58Modeling complex systems
- 9:08Generating art with automata
- 9:33Game of Life explained
- 11:24Game of Life in Scala
- 13:55Edge cases in boards
- 15:21Toroidal boards
- 16:47Automaton evolution iterator
- 17:51Langton’s Ant behavior
- 20:44Common automaton patterns
- 22:50Langton’s Ant simulation
- 23:58Colorful Langton’s Ant
- 25:50Cellular automata for AI
- 27:58AI training with automata
- 29:21Artificial intelligence in game NPC behavior
- 31:44Simplifying NPC AI
- 32:27Trace automaton example
- 33:33Resources and projects
- 34:37Explore creative coding
- 37:10Q&A: Scala vs Rust
- 38:13Q&A: Keyhole navigation
- 38:57Q&A
related talks
35mCellular Automata How to become an artist with a few lines
31mCELLULAR AUTOMATA: HOW TO BECOME AN ARTIST WITH A FEW LINES OF CODE
53mLet's Have Some Fun with Game Of Life:& Learn to Think Functionally Along the Way
36mAn Intro to Generative Art with Scala
01h 04mThe Art of Code
32mCode goes in, Art comes out
01h 02mThe Art of Code
01h 01mThe Art of Code
