This text and code was generated by GPT-4
This project is an interactive implementation of Conway's Game of Life, with the addition of "critters" that move around the grid and "poop" random groups of live cells. The project is implemented using JavaScript, HTML, and CSS.
- Interactive Game of Life simulation
- Critters that move in a directed manner and change direction after a random number of steps
- Critters occasionally "poop" random groups of live cells
- Users can draw critters or tiles on the grid using the left and right mouse buttons
- Clone the repository or download the source code.
- Open the
index.html
file in a modern web browser. - The Game of Life simulation will start automatically.
- To draw critters on the grid, press and hold the left mouse button.
- To draw tiles on the grid, press and hold the right mouse button.
You can customize the simulation by modifying the constants in the gameOfLife.js
file:
WIDTH
andHEIGHT
: Change the size of the canvas.CELL_SIZE
: Adjust the size of the grid cells.NUM_CRITTERS
: Set the initial number of critters.POOPING_PROBABILITY
: Control the probability of critters "pooping" live cells.POOPING_GROUP_SIZE
: Set the number of live cells "pooped" by critters.MIN_STEPS_BEFORE_TURN
andMAX_STEPS_BEFORE_TURN
: Control the range of steps critters move in a direction before turning.
This project is open-source and available under the MIT License.