Skip to the content

Tobiishi飛び石

Jump pegs on nine native boards, generate seeded solvable challenges and build a peg-solitaire player for your page.

Tobiishi is the Japanese word 飛び石 for stepping stones. About the name

Contents

Reference · Boards, rules and challenges

seededRandomfunction

Creates a deterministic pseudo-random stream from a text seed.

Import it

import { seededRandom } from "@johnmorrisdotca/tobiishi";

Definition

function seededRandom(seed: string): () => number

Parameters

NameTypeDescription
seedstring

A reproducible text seed.

Returns

() => number

Creates a deterministic pseudo-random stream from a text seed.

Examples

import { seededRandom } from "@johnmorrisdotca/tobiishi";

console.log(seededRandom("sample")());
0.13703273818828166

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tobiishi 0.3.1.