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; }
引数
| 名前 | 型 | 説明 |
|---|---|---|
date | string | 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'
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。