Reference · Pipes, rules and solving
inBigMixfunction
Whether a shape belongs to a mix of the shapes (BigMix, not five).
Import it
import { inBigMix } from "@johnmorrisdotca/suido";
Definition
function inBigMix(shape: Pick<BigShape, "pipes" | "openings">, mix: BigMix): boolean
Parameters
| Name | Type | Description |
|---|---|---|
shape | Pick<BigShape, "pipes" | "openings"> | A big-piece shape or its pipe/opening counts. |
mix | BigMix | The supported big-piece family mix. |
Returns
boolean
Whether a shape belongs to a mix of the shapes (BigMix, not five).
Examples
import { BIG_SHAPES, inBigMix } from "@johnmorrisdotca/suido";
console.log(inBigMix(BIG_SHAPES[0],"simple"));trueWhat it prints (run when this page was built)