diff options
Diffstat (limited to 'src/solvers')
-rwxr-xr-x[-rw-r--r--] | src/solvers/intuitive.rs | 8 | ||||
-rwxr-xr-x[-rw-r--r--] | src/solvers/mod.rs | 0 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/solvers/intuitive.rs b/src/solvers/intuitive.rs index f4afcff..9521ffc 100644..100755 --- a/src/solvers/intuitive.rs +++ b/src/solvers/intuitive.rs @@ -114,14 +114,14 @@ impl<T: num::PrimInt> NormalSolver<T> { fn permute(&mut self, up: usize, index: usize, numbers: &[u32]) { let chunk = self.permutations.len() / self.h as usize; - if index as usize == numbers.len() - 1 { + if index as usize == numbers.len() - 1 && false { let mut new_num = Vec::from(numbers); if self.n == 6 { new_num[2] = 680; } if self.n == 8 { - //new_num[3] = 38728; - new_num[3] = 36719; + new_num[3] = 38728; + //new_num[3] = 36719; } if self.check_perm(&new_num) { @@ -134,7 +134,7 @@ impl<T: num::PrimInt> NormalSolver<T> { if index as usize == numbers.len() { //println!("checking {:?}", numbers); if self.check_perm(&numbers) { - println!("success"); + //println!("success"); for i in numbers { println!("{},{}", numbers[0], i); } diff --git a/src/solvers/mod.rs b/src/solvers/mod.rs index 0b1d716..0b1d716 100644..100755 --- a/src/solvers/mod.rs +++ b/src/solvers/mod.rs |