本文へ移動

Suido水道

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

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

目次

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

SUIDO_BIG_FAMILIES_GUIDE定数

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

ONE BIG PIECE OF EACH FAMILY. A family is the big pieces whose pipes have the same number of openings, written largest first: 2+2 is two pipes of two openings each, and 1+1+1 is three pipes of one opening each. There are 32, and each entry shows the first shape of its family (BIG_SHAPES), with how many shapes the family has in all.

インポート

import { SUIDO_BIG_FAMILIES_GUIDE } from "@johnmorrisdotca/suido";

定義

const SUIDO_BIG_FAMILIES_GUIDE: readonly GuidePiece[] = BIG_FAMILIES.map((family) => {
    const shape = BIG_SHAPES.find((each) => each.family === family.family)!;
    const pipes = family.pipes === 1 ? "one pipe" : family.pipes === 2 ? "two separate pipes" : "three separate pipes";
    return {
        id: `family-${family.family.replace(/\+/g, "-")}`,
        group: "big" as const,
        name: family.family,
        text: `${pipes} with ${family.openings === 1 ? "one opening" : `${family.openings} openings`} in all (${family.family.split("+").join(", ")}): ${family.shapes} ${family.shapes === 1 ? "shape" : "shapes"}.`,
        layout: plate(shape.id),
        water: false,
        facings: bigFacings(shape.id),
    };
})

例

import { SUIDO_BIG_FAMILIES_GUIDE } from "@johnmorrisdotca/suido";
console.log(SUIDO_BIG_FAMILIES_GUIDE.length);
32

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

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

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