Just a small project to learn rust.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hecht 13643c2df3
Converted the project to use iterators instead of recursion
2 years ago
src Converted the project to use iterators instead of recursion 2 years ago
.gitignore Initial commit 2 years ago
Cargo.toml Added CLI parser + reduced memory allocation 2 years ago
LICENSE Initial commit 2 years ago
README.md Initial commit 2 years ago

README.md

sudoku-solver-rust

Just a small project to learn rust.

Update the mysolver.rs file with your solver implementation. Some unit tests for corner case testing have been added.

use crate::solver::Solver;
use crate::playground::Playground;

pub struct MySolver {
}

impl MySolver {
    pub fn new() -> MySolver {
        return MySolver {};
    }
}

impl Solver for MySolver {
    fn solve(&self, pg: &Playground) -> Option<Playground> {
        // FIXME: Implement!
        None
    }
}

The solver trait hands over self as a read-only reference on purpose. The solver should be stateless, so it can be better compared.