Reference · Pipes, rules and solving
armsOffunction
How many sides a piece opens on.
Import it
import { armsOf } from "@johnmorrisdotca/suido";
Definition
function armsOf(mask: number): number
Parameters
| Name | Type | Description |
|---|---|---|
mask | number | A pipe mask: north 1, east 2, south 4 and west 8. |
Returns
number
How many sides a piece opens on.
Examples
import { armsOf } from "@johnmorrisdotca/suido";
console.log(armsOf(3));2What it prints (run when this page was built)