Skip to content
The Rust sudoku library
Tree: 24904ace6c
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benches
examples
src
sudokus
tests
.gitignore
.travis.yml
CHANGELOG.md
Cargo.toml
license.md
readme.md

readme.md

Sudoku

Crates.io Status Build Status

A Rust library with the only goal of solving sudokus

Usage Example

extern crate sudoku;

use sudoku::Sudoku;

fn main() {
    // Pipes are ignored, you can also omit them
    let sudoku_str = "\
___|2__|_63
3__|__5|4_1
__1|__3|98_
___|___|_9_
___|538|___
_3_|___|___
_26|3__|5__
5_3|7__|__8
47_|__1|___";

    let mut sudoku = Sudoku::from_str(sudoku_str).unwrap();
    sudoku.solve();
    println!("{}", sudoku);
}

Planned

  • Sudoku generation
  • Step-by-step hinting & solving with pluggable strategies
  • Detailed errors for invalid sudokus
You can’t perform that action at this time.