Reference · Pipes, rules and solving
PieceGrouptype
A GUIDE TO EVERY PIECE. Each entry is a piece of Suido and a tiny board with just that piece on it, drawn by the package's own
drawSuido (drawGuidePiece in @johnmorrisdotca/suido/draw), so the guide on a page, in the README and in docs/PIECES.md
shows what a board shows. Five groups:
turn the pieces a tap turns: ground, an end, a straight, an elbow, a tee, a cross
water where the water starts and where it must end: a pump, a drain, and the two joined
twist what a board adds to a piece or to an edge: a locked piece, a wall, edges that join
big big pieces: a square of four cells that is one piece, with one, two or three separate pipes inside
block a block that turns as one: four ordinary pieces that a tap turns togetherImport it
import type { PieceGroup } from "@johnmorrisdotca/suido";
Definition
type PieceGroup = "turn" | "water" | "twist" | "big" | "block";
Examples
import type { PieceGroup } from "@johnmorrisdotca/suido";
const value: PieceGroup = "turn";
console.log(value);turnWhat it prints (run when this page was built)