|
@@ -955,7 +955,8 @@ impl AnySolver {
|
|
|
|
|
|
found_something = false;
|
|
found_something = false;
|
|
|
|
|
|
- let mut values = Bits(0); // HashSet<u8> = HashSet::new();
|
|
|
|
|
|
+ // let mut values = Bits(0); // HashSet<u8> = HashSet::new();
|
|
|
|
+ let mut values = GenBits::<u32>(0);
|
|
|
|
|
|
let mut group_process = |this: &mut Self, grp: &[usize]| {
|
|
let mut group_process = |this: &mut Self, grp: &[usize]| {
|
|
// Collect all the possible values within the group.
|
|
// Collect all the possible values within the group.
|
|
@@ -963,7 +964,7 @@ impl AnySolver {
|
|
for gidx in 0..width {
|
|
for gidx in 0..width {
|
|
// println!("possible: {:?}", this.possible[grp.items[gidx as usize] as usize]);
|
|
// println!("possible: {:?}", this.possible[grp.items[gidx as usize] as usize]);
|
|
for v in this.possible.possible[grp[gidx as usize]].iter() {
|
|
for v in this.possible.possible[grp[gidx as usize]].iter() {
|
|
- values.set(v, true);
|
|
|
|
|
|
+ values.set(v as usize, true);
|
|
}
|
|
}
|
|
// values.extend(this.possible[grp.0[gidx as usize] as usize]);
|
|
// values.extend(this.possible[grp.0[gidx as usize] as usize]);
|
|
// println!("now : {:?}", this.possible[grp.items[gidx as usize] as usize]);
|
|
// println!("now : {:?}", this.possible[grp.items[gidx as usize] as usize]);
|