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
|
2 years ago | |
---|---|---|
src | 2 years ago | |
.gitignore | 2 years ago | |
Cargo.toml | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 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.