morpion-solitaire 0.1.3

Morpion Solitaire: a GUI + headless solver (NRPA, perturbation, exhaustive) for record hunting, with a WebAssembly build.
Documentation
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    #[cfg(not(target_arch = "wasm32"))]
    {
        // A CLI subcommand runs headless and exits inside `dispatch`; with no
        // subcommand it returns `None` and we launch the GUI as before.
        if morpion_solitaire::cli::dispatch().is_none() {
            morpion_solitaire::run_native().expect("failed to run");
        }
    }
    // On WASM the entry point is #[wasm_bindgen(start)] in lib.rs.
}