pencil-puzzles
Generate, solve, rate and check pencil puzzles: fillomino, hashi, hitori, kakurasu, kakuro, nurikabe and sudoku. Every generated puzzle has exactly one solution and a difficulty from easy to expert, set by the hardest human technique it needs.
use ;
use ;
let mut options = new;
options.difficulty = Some;
let generated = generate.unwrap;
println!; // the puzzle in the text format
println!; // a one-line ID
println!; // level and techniques
match solve.unwrap
Each genre is a module with the same functions: generate, solve, rate,
check and hint. genres(), find() and read() work with any genre by
its id, and read() detects the genre of a text record, ID or JSON.
Features
all-genres(default): every genre.- One feature per genre, such as
sudoku. Turn off default features to build fewer genres. serde: serialization for puzzles, solutions and ratings.