Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bones-ai/rust-ants-colony-simulation
- Owner: bones-ai
- Created: 2023-07-30T12:19:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-20T06:16:35.000Z (over 1 year ago)
- Last Synced: 2024-09-27T07:04:00.998Z (4 months ago)
- Topics: ant-colony-systems, bevy, rust-lang, simulation
- Language: Rust
- Homepage: https://youtu.be/98pUSZAM_7M
- Size: 2.52 MB
- Stars: 176
- Watchers: 2
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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`)