Skip to content

ZachBeta/predator_prey_prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moving Circles Life Simulation

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.

Features

  • 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

Prerequisites

  1. Go 1.22 or later

Installing Prerequisites

Go Installation

  1. Download Go from official website
  2. Follow the installation instructions for your OS

Installation

  1. Clone the repository:
git clone https://github.com/zachbeta/predator_prey_prototype.git
cd predator_prey_prototype
  1. Install Go dependencies:
go mod tidy

Running the Simulation

Start the simulation:

go run main.go

Controls and Functionality

Basic Controls

  • Close window to exit the simulation
  • The simulation runs automatically once started

Entities

  • Green circles represent living cells
  • Each cell moves continuously in the environment
  • Cells interact with nearby cells based on proximity rules

Simulation 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

Development

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages