bones-ai
rust-ants-colony-simulation
Rust

An ant colony simulation written in rust

Last updated Jun 21, 2026
209
Stars
10
Forks
5
Issues
0
Stars/day
Attention Score
24
Language breakdown
Rust 100.0%
โ–ธ Files click to expand
README

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 git@github.com: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 ANTINITIALPH_STRENGTH in the configs to a greater value (exmaple: 40.0)
๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท bones-ai/rust-ants-colony-simulation ยท Updated daily from GitHub