本文へ移動

Suido水道

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

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

目次

リファレンス

遊べる盤

import { … } from "@johnmorrisdotca/suido/play";

最小化と gzip 圧縮をしたサイズは 15.7 kB(読み込むものをすべて含み、esbuild で計測)

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

Suido, played in a page: mountSuido draws a board into any element and plays it by tap, mouse and keyboard, with the water flowing as pipes join, a hint, Start over, and the words in English and Japanese. A separate entry (@johnmorrisdotca/suido/play), so a server never loads any of it.

エクスポート

名前種類概要
ensureSuidoPlayStyle関数Put the style in the page once: in the document's head, or in the shadow root the host is in.
mountSuido関数Draw a board into host and play it.
SUIDO_PLAY_STYLE定数THE STYLE a playable Suido board wears (mountSuido, <suido-board>): the drawing's own (SUIDO_STYLE) and the board's box, its chips, its lines of words and its buttons.
SUIDO_STRINGS定数The native English and Japanese labels, announcements and interpolation templates.
SuidoEventDetail型What a mounted board tells of itself in every event.
SuidoLanguage型THE WORDS A SUIDO BOARD SAYS, in English and Japanese: what a screen reader hears of each cell, the buttons and the lines of words under a playable board, and what each twist means.
suidoLanguageOf関数The language a piece of text is in: Japanese for anything starting ja, English for everything else.
SuidoMount型The native mounted board, its game and view, actions and cleanup methods.
SuidoMountOptions型The initial puzzle, native controls, language and event callbacks for mounting a board.
suidoSay関数A line in a language, with its values filled in; the line itself if there is none by that name.
SuidoTurning型The way a tap turns a piece.

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

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