本文へ移動

Jarajaraジャラジャラ

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

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

目次

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

dailyAwase関数

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

THE DAY'S GAME, the same for everybody on the same date: a layout, a level, a seed and a challenge worked out from the date alone (2026-10-01, or a Date, in UTC), so no server need hold it. The seed is never in the block that makes a deal play under the Identical rule, and the layout is never the Tiny one, which is for tests.

インポート

import { dailyAwase } from "@johnmorrisdotca/jarajara/awase";

定義

function dailyAwase(date: string | Date): { date: string; size: number; level: AwaseLevel; seed: number; challenge: AwaseChallenge; }

引数

名前型説明
datestring | Date

A UTC date or native date string for the daily setup.

戻り値

{ date: string; size: number; level: AwaseLevel; seed: number; challenge: AwaseChallenge; }

THE DAY'S GAME, the same for everybody on the same date: a layout, a level, a seed and a challenge worked out from the date alone (2026-10-01, or a Date, in UTC), so no server need hold it. The seed is never in the block that makes a deal play under the Identical rule, and the layout is never the Tiny one, which is for tests.

例

import { dailyAwase } from "@johnmorrisdotca/jarajara/awase";

console.log(dailyAwase("2026-10-12"));
{
  date: '2026-10-12',
  size: 13,
  level: 'hard',
  seed: 591394278,
  challenge: 'spark'
}

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

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

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