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 · Pipes, rules and solving

isGameSolvedfunction

Whether the game is solved: the same test the check makes of an answer.

Import it

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

Definition

function isGameSolved(game: Game): boolean

Parameters

NameTypeDescription
gameGame

The current immutable game state.

Returns

boolean

Whether the game is solved: the same test the check makes of an answer.

Examples

import { SUIDO_5X5 } from "@johnmorrisdotca/suido/levels-5x5";
import { isGameSolved, newGame } from "@johnmorrisdotca/suido";

const row = SUIDO_5X5[0];
const code = row[0];
const game = newGame(code)!;
console.log(isGameSolved(game));
false

What it prints (run when this page was built)

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