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 · Spider

encodeMovefunction

One move written as text: one or two letters.

Import it

import { encodeMove } from "@johnmorrisdotca/toranpu/spider";

Definition

function encodeMove(move: SpiderMove): string

Parameters

NameTypeDescription
moveSpiderMove

The native move to validate or apply.

Returns

string

One move written as text: one or two letters.

Examples

import { encodeMove } from "@johnmorrisdotca/toranpu/spider";

console.log(encodeMove({ kind: "deal" }));
d

What it prints (run when this page was built)

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