Skip to main content

Crate morpion_solitaire

Crate morpion_solitaire 

Source
Expand description

Morpion Solitaire — a fast player and solver.

This is the shared library behind both the native binary (GUI + headless cli) and the WebAssembly build (the morpion-solitaire-wasm crate). The game model and search engines are format-agnostic; the self-describing record format itself lives in the separate morpion-solitaire-record (msr) crate. See the project README and book for usage.

Modules§

app
cli
Headless command-line interface (native only).
game
i18n
render
Render a game to a pretty, self-describing SVG (and, via resvg, PNG): coloured lines per direction, a filled initial cross, numbered move circles, and a tangent “talon” at each line’s origin. Vector text uses the bundled Atkinson Hyperlegible Next font (referenced by family; the PNG path loads the TTF so it always renders).
search
ui

Functions§

create_app
Construct the eframe application. Shared by the native binary (run_native) and the WebAssembly entry point (the morpion-solitaire-wasm crate).
run_native