sodo

Crates.iosodo
lib.rssodo
version0.2.6
created_at2025-12-30 08:48:23.524005+00
updated_at2025-12-30 10:40:02.539851+00
descriptionSudoku in Rust
homepage
repository
max_upload_size
id2012309
size39,462
ΣX (gitctrlx)

documentation

README

sodo

Fast Sudoku solver and generator in Rust.

Installation

cargo install sodo

Usage

# Generate a puzzle
sodo g -d hard

# Solve a puzzle
sodo s <puzzle>

# Get a hint
sodo h <puzzle>

# Validate
sodo v <puzzle>

Library

use sodo::{Sudoku, Solver};

let puzzle = Sudoku::from_string(
    "..76..23.1.29.4.5.695..34...1...5.6.....6.......3...4...12..38.45.1.87.6.28..61..",
    9
).unwrap();

let mut solver = Solver::new();
let solution = solver.solve(puzzle).unwrap();
println!("{}", solution);

License

Licensed under either of:

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in sodo by you, as defined in the Apache-2.0 license, shall be dually licensed as above, without any additional terms or conditions.

Commit count: 0

cargo fmt