A Conway's Game of Life inspired simulation where circles move around and interact based on proximity. This project demonstrates emergent behavior through simple rules applied to moving entities.
- Dynamic movement of entities represented as circles
- Proximity-based interactions between entities
- Continuous simulation with real-time visualization
- Inspired by Conway's Game of Life rules but with added movement mechanics
- Ebiten-powered graphics for smooth rendering
- Go 1.22 or later
- Download Go from official website
- Follow the installation instructions for your OS
- Clone the repository:
git clone https://github.com/zachbeta/predator_prey_prototype.git
cd predator_prey_prototype
- Install Go dependencies:
go mod tidy
Start the simulation:
go run main.go
- Close window to exit the simulation
- The simulation runs automatically once started
- Green circles represent living cells
- Each cell moves continuously in the environment
- Cells interact with nearby cells based on proximity rules
- Cells move autonomously in the environment
- Interactions occur when cells come within proximity of each other
- Movement patterns and interactions create emergent behavior
- Rules are inspired by Conway's Game of Life but adapted for continuous movement
The project is structured using Go modules and Ebiten for graphics rendering. The main simulation logic is separated from the rendering code for better maintainability