Reference · Rules, generation and deductions
dailySeedfunction
UTC by definition, so two people sharing a daily seed get the same board.
Import it
import { dailySeed } from "@johnmorrisdotca/jirai";
Definition
function dailySeed(day: string, grid?: string): number
Parameters
| Name | Type | Description |
|---|---|---|
day | string | A real UTC date written YYYY-MM-DD. |
grid (optional) | string | The native topology/variant used to select the daily-seed format. |
Returns
number
UTC by definition, so two people sharing a daily seed get the same board.
Examples
import { dailySeed } from "@johnmorrisdotca/jirai";
console.log(dailySeed("2024-01-01","orthogonal"));409828595What it prints (run when this page was built)