本文へ移動

Jarajaraジャラジャラ

麻雀牌を描き、手牌や積み重ねた盤を配置し、シード付きの「合わせ」をひとりでも対戦卓でも遊べます。

「ジャラジャラ」は麻雀牌が触れ合う音を表す言葉です。 名前について(英語)

目次

リファレンス · 合わせのひとり遊び

AwaseOptions型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

What the options of a game say. Every field may be left out.

インポート

import type { AwaseOptions } from "@johnmorrisdotca/jarajara/awase";

定義

type AwaseOptions = {
    challenge?: AwaseChallenge | null;
    hints?: number | null;
    shuffles?: number | null;
    undo?: boolean;
};

メンバー

名前型説明
challenge (省略可)"gold" | "spark" | "rush" | "fortune" | "sand" | "purge" | "blackout" | null | undefined

A challenge to play the deal as. Unless said, plain Awase.

hints (省略可)number | null | undefined

How many hints the game may use: a number, or null for as many as it likes (unless said).

shuffles (省略可)number | null | undefined

How many shuffles: a number, or null for as many as it likes (unless said).

undo (省略可)boolean | undefined

Whether a move may be taken back. Unless said, it may, unless the challenge forbids it.

例

import type { AwaseOptions } from "@johnmorrisdotca/jarajara/awase";

const value: AwaseOptions = {challenge:"rush",hints:1,shuffles:1,undo:true};
console.log(value);
{ challenge: 'rush', hints: 1, shuffles: 1, undo: true }

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/jarajara 1.7.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。