Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Klondike

encodeMovesfunction

A list of moves written as text, one after another with nothing between.

Import it

import { encodeMoves } from "@johnmorrisdotca/toranpu/klondike";

Definition

function encodeMoves(moves: readonly KlondikeMove[]): string

Parameters

NameTypeDescription
movesreadonly KlondikeMove[]

The ordered native moves to replay.

Returns

string

A list of moves written as text, one after another with nothing between.

Examples

import { encodeMoves } from "@johnmorrisdotca/toranpu/klondike";

console.log(encodeMoves([{ kind: "draw" }]));
d

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.