本文へ移動

Suido水道

管を回してポンプと排水口をつなぎます。収録された問題やシード付きの問題で遊べます。

「水道」は、水を届ける設備を表す言葉です。 名前について(英語)

目次

リファレンス · 管・ルール・解法

PieceGroup型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

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 together

インポート

import type { PieceGroup } from "@johnmorrisdotca/suido";

定義

type PieceGroup = "turn" | "water" | "twist" | "big" | "block";

例

import type { PieceGroup } from "@johnmorrisdotca/suido";

const value: PieceGroup = "turn";
console.log(value);
turn

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/suido 1.7.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。