AI learns to drive in a road-fighter inspired environment
The cars are controlled using a neural network, and are trained using a genetic algorithm.
Built with Rust and Bevy game engine
Here's the entire timelapse of the AI learning to drive
- Clone the repo
git clone git@github.com:bones-ai/rust-drive-ai.git cd rust-drive-ai
- Run the simulation in the browser
cargo run --target wasm32-unknown-unknown
- Build the simulation for distribution
cargo build --release --target wasm32-unknown-unknown wasm-bindgen --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/steering.wasm
- The project config file is located at
src/configs.rs