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 d16676c4c4
Added my own solver (plus some utils)
2 years ago
src Added my own solver (plus some utils) 2 years ago
.gitignore Initial commit 2 years ago
Cargo.toml Initial commit 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.