Skip to the content

Suido水道

Turn pipes to connect the pumps and drains, through fixed levels or seeded puzzles.

Suido means water supply in Japanese. About the name

Contents

Reference

Playable board

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

15.7 kB minified and gzipped, with everything it imports (measured with 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.

Exports

NameKindWhat it is
ensureSuidoPlayStylefunctionPut the style in the page once: in the document's head, or in the shadow root the host is in.
mountSuidofunctionDraw a board into host and play it.
SUIDO_PLAY_STYLEconstantTHE 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_STRINGSconstantThe native English and Japanese labels, announcements and interpolation templates.
SuidoEventDetailtypeWhat a mounted board tells of itself in every event.
SuidoLanguagetypeTHE 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.
suidoLanguageOffunctionThe language a piece of text is in: Japanese for anything starting ja, English for everything else.
SuidoMounttypeThe native mounted board, its game and view, actions and cleanup methods.
SuidoMountOptionstypeThe initial puzzle, native controls, language and event callbacks for mounting a board.
suidoSayfunctionA line in a language, with its values filled in; the line itself if there is none by that name.
SuidoTurningtypeThe way a tap turns a piece.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/suido 1.7.0.