use of searcher.pack.mino_fields.RecursiveMinoFields in project solution-finder by knewjade.
the class MappedBasicSolutionsTest method get3x3.
@Test
void get3x3() throws Exception {
SizedBit sizedBit = new SizedBit(3, 3);
SeparableMinos separableMinos = createSeparableMinos(sizedBit);
BasicSolutionsCalculator calculator = new BasicSolutionsCalculator(separableMinos, sizedBit);
Map<ColumnField, RecursiveMinoFields> calculate = calculator.calculate();
BasicSolutions solutions = new MappedBasicSolutions(calculate);
MinoFields minoFields = solutions.parse(ColumnFieldFactory.createField());
Stream<? extends MinoField> stream = minoFields.stream();
assertThat(stream.count()).isEqualTo(278L);
}
use of searcher.pack.mino_fields.RecursiveMinoFields in project solution-finder by knewjade.
the class PackSearcherTest method createMappedBasicSolutions.
private BasicSolutions createMappedBasicSolutions(SizedBit sizedBit) {
SeparableMinos separableMinos = SeparableMinos.createSeparableMinos(minoFactory, minoShifter, sizedBit);
BasicSolutionsCalculator calculator = new BasicSolutionsCalculator(separableMinos, sizedBit);
Map<ColumnField, RecursiveMinoFields> calculate = calculator.calculate();
return new MappedBasicSolutions(calculate);
}
Aggregations