Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bones-ai/rust-ants-colony-simulation

An ant colony simulation written in rust
https://github.com/bones-ai/rust-ants-colony-simulation

ant-colony-systems bevy rust-lang simulation

Last synced: 4 months ago
JSON representation

An ant colony simulation written in rust

Awesome Lists containing this project

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](https://www.rust-lang.org/) and [Bevy](https://bevyengine.org/) game engine

![screenshot](/screenshot.png)

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

[![youtube](https://img.youtube.com/vi/98pUSZAM_7M/0.jpg)](https://youtu.be/98pUSZAM_7M)

# Timelapses with Approach 1
[![youtube](https://img.youtube.com/vi/5xdfTJBMnwI/0.jpg)](https://youtu.be/5xdfTJBMnwI)

## Usage
- Clone the repo
```bash
git clone [email protected]:bones-ai/rust-ants-colony-simulation.git
cd rust-ants-colony-simulation
```
- Run the simulation
```bash
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`)