本文へ移動

Suido水道

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

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

目次

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

GuidePiece型

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

One piece of the guide.

インポート

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

定義

type GuidePiece = {
    id: string;
    group: PieceGroup;
    name: string;
    text: string;
    layout: Layout;
    water: boolean;
    facings: number | null;
};

メンバー

名前型説明
idstring

Its name in the address of a page or the name of a picture: lower case words joined with hyphens.

groupPieceGroup
namestring

Its name, in English.

textstring

What it is and what it does, in a sentence or two, in English.

layoutLayout

A board with the piece on it. Drawn as it is, so a pump the water leaves from shows its water.

waterboolean

Whether the picture shows the water.

facingsnumber | null

How many ways it faces when it is turned: 1, 2 or 4; null for a thing that is not turned.

例

import type { GuidePiece } from "@johnmorrisdotca/suido";
import { SUIDO_PIECE_GUIDE } from "@johnmorrisdotca/suido";

const value: GuidePiece = SUIDO_PIECE_GUIDE[0];
console.log(value);
{
  id: 'ground',
  group: 'turn',
  name: 'Ground',
  text: 'Bare ground, with nothing on it. Only boards whose water need not reach every piece have it, and it is never turned.',
  layout: {
    width: 1,
    height: 1,
    kind: 'network',
    wrap: false,
    cells: [ 0 ],
    sources: [],
    drains: []
  },
  water: false,
  facings: null
}

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

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

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