atmosim 0.1.0

A library for calculating most efficient gas bombs in Space Station 14 game
Documentation
use atmosim::{optimizer::Optimizer, prelude::*};

#[test]
fn optimizer_works() {
    let engine = Atmosim::default();
    let optimizer = Optimizer {
        allowed_gases0: gases! {
        Gas::Tritium => true,
        _ => false,
        },
        temp_range0: (100., 500.),
        allowed_gases1: gases! {
            Gas::Oxygen => true,
            _ => false,
        },
        temp_range1: (293.15, 293.15),
        ..Optimizer::from_engine(&engine)
    };

    let maxcap = optimizer.run().unwrap();

    eprintln!("{maxcap}");
    // this shit obviously fluctuates
    assert!(maxcap.radius > 4.);
    assert!(maxcap.ticks > 10);
    assert!(maxcap.ticks < 15)
}