use of searcher.pack.separable_mino.AllSeparableMinoFactory in project solution-finder by knewjade.
the class SeparableMinos method createSeparableMinos.
public static SeparableMinos createSeparableMinos(MinoFactory minoFactory, MinoShifter minoShifter, SizedBit sizedBit, long deleteKeyMask) {
AllSeparableMinoFactory factory = new AllSeparableMinoFactory(minoFactory, minoShifter, sizedBit.getWidth(), sizedBit.getHeight(), deleteKeyMask);
Set<SeparableMino> separableMinos = factory.create();
return new SeparableMinos(separableMinos);
}
use of searcher.pack.separable_mino.AllSeparableMinoFactory in project solution-finder by knewjade.
the class SeparableMinosTest method createSeparableMinoSet.
private Set<SeparableMino> createSeparableMinoSet() {
Randoms randoms = new Randoms();
MinoFactory minoFactory = new MinoFactory();
MinoShifter minoShifter = new MinoShifter();
int fieldHeight = randoms.nextIntClosed(1, 10);
int fieldWidth = randoms.nextIntClosed(1, 4);
SizedBit sizedBit = new SizedBit(fieldWidth, fieldHeight);
AllSeparableMinoFactory separableMinoFactory = new AllSeparableMinoFactory(minoFactory, minoShifter, sizedBit.getWidth(), sizedBit.getHeight(), sizedBit.getFillBoard());
return separableMinoFactory.create();
}
Aggregations