rust-genetic-rockets
rust-genetic-rockets copied to clipboard
Genetic algorithm simulation in rust using nannou
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 [email protected]: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
- Flood fill for rocket fitness (flood-fill-fitness).
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