Reference · Pipes, rules and solving
flowOfGamefunction
The water on a game.
Import it
import { flowOfGame } from "@johnmorrisdotca/suido";
Definition
function flowOfGame(game: Game): Flow
Parameters
| Name | Type | Description |
|---|---|---|
game | Game | The current immutable game state. |
Returns
Flow
The water on a game.
Examples
import { SUIDO_5X5 } from "@johnmorrisdotca/suido/levels-5x5";
import { flowOfGame, newGame } from "@johnmorrisdotca/suido";
const row = SUIDO_5X5[0];
const code = row[0];
const game = newGame(code)!;
console.log(flowOfGame(game).wetPieces);1What it prints (run when this page was built)