This cellular automata life simulation game is an implementation using HTML Canvas and JavaScript to create a cellular automaton based on simple rules.
- Cell Grid: A grid is displayed on the canvas where each cell can be in either a living or dead state.
- User Interaction: Users can interact with the cells by clicking or dragging the mouse to change their state.
- Automatic Evolution: Cells evolve automatically according to specific rules after the game is launched.
- Configurable Parameters: Use the user interface to adjust grid size, evolution speed, and colors.
-
Installation:
- Download or clone this repository.
- Use Live Server to launch the game.
- If using Visual Studio Code, install the "Live Server" extension and open the
index.html
file. Right-click and select "Open with Live Server".
-
Interaction:
- Click on a cell to toggle its state between alive and dead.
- Hold down and drag the mouse to change the state of multiple cells at once.
-
Controls:
- Use the interface to start, stop, or clear the grid.
- Adjust grid size and evolution speed using the available controls.
Some browsers may block sounds that start automatically to provide a better browsing experience. Here's how to allow sounds in some browsers:
- Go to
chrome://settings/content/sound
in the address bar. - Enable the option "Allow sites to play sounds (recommended)".
- Go to
about:preferences#privacy
in the address bar. - Under "Permissions," click on "Settings" next to "Notifications".
- Ensure the game site is allowed to play sounds.
These steps may vary slightly depending on browser versions, but they should give you a general idea of how to allow sounds in your browser.
You can access the game directly here.