本文へ移動

Kazu数

検証済みの数独や論理パズルを作り、標準の規則とヒントを読み、盤を描いたり埋め込んだりできます。

「数」は数字を表す言葉です。 名前について(英語)

目次

リファレンス · 遊べる数字の盤

KazuMountSettings型

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

Everything about how a mounted board plays that can change while it is on the page.

インポート

import type { KazuMountSettings } from "@johnmorrisdotca/kazu/play";

定義

type KazuMountSettings = Pick<KazuMountOptions, "hints" | "check" | "conflicts" | "peers" | "tidy" | "tapToStep" | "language" | "clock" | "controls">;

メンバー

名前型説明
hints (省略可)"place" | "show" | "off" | undefined

What Hint does: place writes the number it found (default), show only points at the cell and says why, off takes the button away.

check (省略可)"show" | "off" | "count" | undefined

What Check does: count says how many cells are wrong (default), show marks them too, off takes the button away.

conflicts (省略可)boolean | undefined

Draw the cells that break a rule in red as they are made. Default true.

peers (省略可)boolean | undefined

Wash the chosen cell's row, column and group, and the cells holding its number. Default true.

tidy (省略可)boolean | undefined

A number written takes itself out of the pencil marks of the cells it shares a group with. Default true.

tapToStep (省略可)boolean | undefined

A tap on the chosen cell steps its number on. Default true.

language (省略可)KazuLanguage | undefined

The language the words are in. Left out, the host's own lang, or the page's, and it follows the page's.

clock (省略可)boolean | undefined

Show the clock, which starts on the first entry. Default true.

controls (省略可)boolean | undefined

The number pad and the buttons under the board. Default true.

例

import type { KazuMountSettings } from "@johnmorrisdotca/kazu/play";

const value: KazuMountSettings = {language:"ja",hints:"off"};
console.log(value);
{ language: 'ja', hints: 'off' }

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

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

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