Description
Introduction
This project implements Conway's Game of Life, a cellular automaton where cells evolve based on simple rules. Users can interact by adding or removing cells, exploring the emergent patterns through use of the statistics, step through and interactive features.
Implementation
This project implements Conway's Game of Life using a 2D grid. Each cell's state is updated based on its neighbors according to predefined rules. These rules can be generalized but the specific rule set created by Conway shows interesting emergent behavior. From these rules the game of life is turing complete, meaning it can simulate any computation. The project uses p5.js for rendering and user interaction.
What I Learned
I learned about cellular automata and how simple rules can lead to complex patterns. This project also improved my skills in implementing grid-based simulations and creating interactive user interfaces.
Instructions:
- • Mouse Click: Add/Remove Cells
- • R: Randomize Grid
- • S: Open Statistics
- • Spacebar: Pause/Play
- • Mousewheel: Speed