/drive-ai

Self driving car AI in road fighter world

Primary LanguageRustMIT LicenseMIT

AI learns to drive

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

gui

Demo

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

youtube

Usage

  • 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
    

Configurations

  • The project config file is located at src/configs.rs

Assets