本文へ移動

Jarajaraジャラジャラ

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

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

目次

リファレンス · 合わせの対戦卓

AWASE_TABLE定数

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

THE RULES AT THE TABLE. Two to four players share one layout and take turns, each taking one pair of free tiles that match — the solitaire's own move. Every pair scores for whoever took it: the plain suit tiles one, the ones and nines two, a wind three, a dragon four (pairPoints), and a flower or season pair two and another turn. When the player to move has no pair to take, the tiles left are shuffled where they lie (as the solitaire's Shuffle does) and the same player goes on. The game ends when the layout is cleared, or when what is left cannot be freed by any shuffle; most points wins, and a tie shares it.

Why these rules: taking turns alone would be decided by counting — two players taking a pair each get half the pairs whatever they do. Pairs that are worth different amounts make every turn a choice between taking the dragon now and leaving the next player nothing good, which is a game of reading the whole layout. And everything is face up, so the device is passed with no cover screen: nothing is secret at this table.

Pure, like every rule here: each function returns a new table.

インポート

import { AWASE_TABLE } from "@johnmorrisdotca/jarajara/table";

定義

const AWASE_TABLE: { readonly least: 2; readonly most: 4; readonly nameMost: 20; } = { least: 2, most: 4, nameMost: 20 } as const

メンバー

名前型説明
least2
most4
nameMost20

例

import { AWASE_TABLE } from "@johnmorrisdotca/jarajara/table";
console.log(AWASE_TABLE);
{ least: 2, most: 4, nameMost: 20 }

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

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

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