summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 178664fd4881e336213e50042d787cb4bd1016bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
mod permutations;
mod solver;
mod solvers;
mod structs;
#[macro_use]
pub extern crate lazy_static;

use crate::solver::{Solver, IteratorSolver};

pub static N: u32 = 8;
fn main() {
    //let mut solver = solvers::intuitive::NormalSolver::new(N);
    //solver.solve();
    
    let mut solver = solvers::gpusolver::GpuSolver::new(N);
    println!("solver: {:?}", solver);
    for (i, solution) in solver.solve().enumerate() {
        println!("{}: {:?}", i, solution);
    }
}