sujay-ee
rust-genetic-rockets
Rust

Genetic algorithm simulation in rust using nannou

Last updated Apr 10, 2026
67
Stars
3
Forks
0
Issues
0
Stars/day
Attention Score
8
Language breakdown
Rust 100.0%
โ–ธ Files click to expand
README

Genetic Rockets Simulation

A genetic algorithm simulation of rockets trying to reach the target written in rust using nannou.

Video demo

https://user-images.githubusercontent.com/43251130/215404632-01769862-1162-4b1a-a0e9-8f03cf1fe557.mp4

Usage

  • Clone the repo
git clone git@github.com:sujay-ee/rust-genetic-rockets.git
    cd rust-genetic-rockets
  • Run the simulation
cargo run --release
  • To update the simulation configurations use the configs file located at src/configs.rs
  • To update the map layout edit the file at assets/map.txt. 0 indicates a wall, 1 indicates a no-wall block

Experimental branches

References

  • Python implementation of the same
- https://github.com/sujay-ee/genetic-rockets-simulation
  • Vectors
- https://www.mathsisfun.com/algebra/vectors.html - https://natureofcode.com/book/chapter-1-vectors
  • Autonomous Agents (Controlling rockets on the screen) -
- https://natureofcode.com/book/chapter-6-autonomous-agents/
  • Genetic Algorithm
- https://natureofcode.com/book/chapter-9-the-evolution-of-code/ - Youtube tutorial - https://www.youtube.com/watch?v=9zfeTw-uFCw&list=PLRqwX-V7Uu6bJM3VgzjNV5YxVxUwzALHV
๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท sujay-ee/rust-genetic-rockets ยท Updated daily from GitHub