| Crates.io | sodo |
| lib.rs | sodo |
| version | 0.2.6 |
| created_at | 2025-12-30 08:48:23.524005+00 |
| updated_at | 2025-12-30 10:40:02.539851+00 |
| description | Sudoku in Rust |
| homepage | |
| repository | |
| max_upload_size | |
| id | 2012309 |
| size | 39,462 |
Fast Sudoku solver and generator in Rust.
cargo install sodo
# Generate a puzzle
sodo g -d hard
# Solve a puzzle
sodo s <puzzle>
# Get a hint
sodo h <puzzle>
# Validate
sodo v <puzzle>
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);
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.