Skip to content
Projects

bones-ai/rust-ants-colony-simulation

View on GitHub

About

An ant colony simulation written in rust

Science & Engineering

How these counts are measured

Measured star growth

in 24h
-1
in 7 days
-1
in 15 days
-1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Ant Colony Simulation

This is an ant colony simulation, it internally uses kdtree and query caching, it's able to handle about 5k ants on the cpu.

Built with Rust and Bevy game engine

screenshot

Demo

Here's the entire timelapse of the AI learning to drive

youtube

Timelapses with Approach 1

youtube

Usage

  • Clone the repo
git clone [email protected]:bones-ai/rust-ants-colony-simulation.git
cd rust-ants-colony-simulation
  • Run the simulation
cargo run --release

Configurations

  • The project config file is located at src/configs.rs
  • If all ants aren't forming a single trail even after a long time, try increasing ANT_INITIAL_PH_STRENGTH in the configs to a greater value (exmaple: 40.0)

Explore related projects

Loading…