WitnessSteptype
One witnessed Colour Chains pair placement using pivot column and orientation.
Import it
import type { WitnessStep } from "@johnmorrisdotca/houseki/colour-chains";
Definition
interface WitnessStep {
readonly pivotX: number;
readonly orientation: Orientation;
}
Members
| Name | Type | Description |
|---|---|---|
pivotX | number | |
orientation | Orientation |
Examples
import type { WitnessStep } from "@johnmorrisdotca/houseki/colour-chains";
const value: WitnessStep = {pivotX:0,orientation:"up"};
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'pivotX', 'orientation' ]What it prints (run when this page was built)