Skip to content
/ sodo Public

Sudoku in Rust, Python and WASM.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

qntx/sodo

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.

About

Sudoku in Rust, Python and WASM.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Contributors 2

  •  
  •