MCPcopy Index your code
hub / github.com/bones-ai/rust-drive-ai

github.com/bones-ai/rust-drive-ai @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
79 symbols 109 edges 10 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Devlog

Here's a devlog of how this was built

youtube

Usage

  • Clone the repo git clone git@github.com:bones-ai/rust-drive-ai.git cd rust-drive-ai
  • Run the simulation cargo run --release

Configurations

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

Forks

Here's a list of of forks that extend this project, let me know if you have an interesting fork to add: - https://gitlab.com/ThibaultLemaire/rust-drive-ai

Assets

Core symbols most depended-on inside this repo

get_nn_node_shape
called by 3
src/gui.rs
get_nn_viz_points
called by 3
src/gui.rs
spawn_cars
called by 2
src/population.rs
are_colors_equad
called by 2
src/gui.rs
spawn_enemies
called by 2
src/enemy.rs
spawn_bound_trucks
called by 2
src/enemy.rs
position_based_movement_system
called by 2
src/car.rs
draw_ray_cast
called by 2
src/car.rs

Shape

Function 39
Class 25
Method 14
Enum 1

Languages

Rust100%

Modules by API surface

src/car.rs24 symbols
src/gui.rs17 symbols
src/enemy.rs12 symbols
src/population.rs8 symbols
src/nn.rs7 symbols
src/resources.rs5 symbols
src/main.rs5 symbols
src/road.rs1 symbols

For agents

$ claude mcp add rust-drive-ai \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact