Reference · Rules, solvers and generation
dailyTsunagiLevelfunction
The level of the day at a size: a whole number from 1 to that size's count of levels, or null for a size there are no levels of. It ignores which levels a player has opened: today's level is open to everybody.
Import it
import { dailyTsunagiLevel } from "@johnmorrisdotca/tsunagi";
Definition
function dailyTsunagiLevel(size: number, date: string | Date): number | null
Parameters
| Name | Type | Description |
|---|---|---|
size | number | The number of cells on each side of the board. |
date | string | Date | A UTC date or native date string. |
Returns
number | null
The level of the day at a size: a whole number from 1 to that size's count of levels, or null for a size there are no levels of. It ignores which levels a player has opened: today's level is open to everybody.
Examples
import { dailyTsunagiLevel } from "@johnmorrisdotca/tsunagi";
console.log(dailyTsunagiLevel(4,"2026-10-12"));19What it prints (run when this page was built)