Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 1.02 KB

README.md

File metadata and controls

28 lines (16 loc) · 1.02 KB

Boids

This repository contains an implementation of the boids artificial life program developed by Craig Reynolds in 1986.

Screeshot

Building

The application depends on GLib-2.0 and the GTK+-3.0 toolkit. Once the development packages of these libraries are installed, just type make.

Boids Behavior

Rules

The boids obey to 3 main rules:

  • Avoidance: A boid avoids its very close neighbors
  • Alignment: A boid aligns with its neighbors
  • Cohesion: Boids tend to aggregate together

You can enable / disable rules by with their corresponding check-boxes.

There is also a rule that defines the boid field of view dead-angle. It's the angle in the back of a boid in which it cannot see its neighbors.

Obstacles

You can add obstacles by clicking in the field. Use Ctrl+Click on an obstacle to remove it.

You can also add walls with the corresponding checkbox.