@logic-pad/core
Version:
20 lines (19 loc) • 571 B
JavaScript
import RegionShapeBTModule from './regionShape.js';
export default class SameShapeBTModule extends RegionShapeBTModule {
constructor(instr) {
super(instr);
Object.defineProperty(this, "instr", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this.instr = instr;
}
checkGlobal(grid) {
const regions = this.getShapeRegions(grid);
return regions.length <= 1
? { tilesNeedCheck: null, ratings: null }
: false;
}
}