Reference · Playable number grid
KazuMountSettingstype
Everything about how a mounted board plays that can change while it is on the page.
Import it
import type { KazuMountSettings } from "@johnmorrisdotca/kazu/play";
Definition
type KazuMountSettings = Pick<KazuMountOptions, "hints" | "check" | "conflicts" | "peers" | "tidy" | "tapToStep" | "language" | "clock" | "controls">;
Members
| Name | Type | Description |
|---|---|---|
hints (optional) | "place" | "show" | "off" | undefined | What Hint does: |
check (optional) | "show" | "off" | "count" | undefined | What Check does: |
conflicts (optional) | boolean | undefined | Draw the cells that break a rule in red as they are made. Default true. |
peers (optional) | boolean | undefined | Wash the chosen cell's row, column and group, and the cells holding its number. Default true. |
tidy (optional) | boolean | undefined | A number written takes itself out of the pencil marks of the cells it shares a group with. Default true. |
tapToStep (optional) | boolean | undefined | A tap on the chosen cell steps its number on. Default true. |
language (optional) | KazuLanguage | undefined | The language the words are in. Left out, the host's own |
clock (optional) | boolean | undefined | Show the clock, which starts on the first entry. Default true. |
controls (optional) | boolean | undefined | The number pad and the buttons under the board. Default true. |
Examples
import type { KazuMountSettings } from "@johnmorrisdotca/kazu/play";
const value: KazuMountSettings = {language:"ja",hints:"off"};
console.log(value);{ language: 'ja', hints: 'off' }What it prints (run when this page was built)