A collection of fascinating cellular automata implementations, including Rule 110, Langton's Ant, and a 3D version of Conway's Game of Life. This project demonstrates various emergent behaviors and patterns that arise from simple rules in cellular automata.
- Rule 110: Implementation of the famous Rule 110 cellular automaton, known for its Turing completeness
- Langton's Ant: Multi-ant simulation with colorful visualization
- 3D Game of Life: A three-dimensional extension of Conway's Game of Life with interactive visualization
numpy
matplotlib
- Clone this repository:
git clone https://github.com/ai-dengwsh/CellularAutomata3D.git
cd CellularAutomata3D
- Install the required packages:
pip install -r requirements.txt
python rule110.py
This will generate a 400x400 pattern following Rule 110's evolution rules.
python langtons_ant.py
Runs a simulation with 3 ants on a 200x200 grid, each ant having its own color.
python game_of_life_3d.py
Simulates a 20x20x20 3D version of Conway's Game of Life with animated visualization.
Feel free to open issues or submit pull requests if you have suggestions for improvements or find any bugs.
This project is open source and available under the MIT License.