msolve

Crates.iomsolve
lib.rsmsolve
version0.6.0
sourcesrc
created_at2020-06-22 07:01:32.075205
updated_at2020-07-05 22:59:09.313518
descriptionAnother sudoku solving library
homepage
repositoryhttps://github.com/mkb2091/msolve/
max_upload_size
id256566
size61,537
Alex Williams (mkb2091)

documentation

README

msolve

Travis CI

A WIP sudoku solving library

Goals

Improve performance, potentially via using SIMD, and or GPU

Add sudoku difficulty grading, potentially by counting the number of iterations needed to solve

Add sudoku generation from a seed sudoku

Usage

To get the first solution to each sudoku in input: msolve solve_one < sudokufile.txt > output.txt

To get the solution for each uniquely solvable sudoku in input: msolve solve_unique < sudokufile.txt > output.txt

To get the first N solutions to each sudoku in input: msolve solve_n N < sudokufile.txt > output.txt

To get information about the sudoku file: msolve info < sudokufile.txt

Example output for info: 0 Solutions: 486451, 1 Solution: 763, 2+ Solutions: 12786

To list all puzzles with a single unique solution: msolve find_with_single_solution < sudokufile.txt > output.txt

To list all puzzles with at least one unique solution: msolve find_with_solution < sudokufile.txt > output.txt

To get the number of solutions of each puzzles, up to a maximum of N: msolve count_solutions N < sudokufile.txt > output.txt

Commit count: 240

cargo fmt