• taladar@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    I imagine a close approximation of this AI would look something like this

    fn drives_like_a_criminal(driver: &Driver) -> bool {
        driver.vehicle == Vehicles::Car || driver.vehicle == Vehicles::Truck || driver.vehicle == Vehicles::Motorcycle
    }