blob: 605bafc257020c84131dbb23e5b348be802921c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
mod permutations;
mod solvers;
mod structs;
use crate::solvers::{IteratorSolver, Solver};
pub static N: u32 = 40;
fn main() {
let clock = std::time::Instant::now();
//let mut solver = solvers::single::NormalSolver::new(N);
//solver.solve();
//let solver = solvers::gpusolver::GpuSolver::new(N);
//println!("solver: {:?}", solver);
/*for (i, solution) in solver.solve().enumerate() {
println!("{}: {:?}", i, solution);
}*/
let mut wall = solvers::bwinf::BwinfSolver::new(N);
wall.solve();
wall.output();
println!("took: {:?}", clock.elapsed());
}
|