本文へ移動

Kazu数

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

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

目次

リファレンス

波及効果の規則

import { … } from "@johnmorrisdotca/kazu/ripple";

最小化と gzip 圧縮をしたサイズは 8.2 kB(読み込むものをすべて含み、esbuild で計測)

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

Ripple Effect has its own room and spacing model.

エクスポート

名前種類概要
checkRipple関数Checks room permutations and the at-least-N-cell gap between equal N clues in a line.
decodeRipple関数Read a native saved Ripple game, or null for invalid board data or progress.
drawRipple関数Render the Ripple board and supplied current state as native SVG text.
encodeRipple関数Encode the Ripple board and current game as native resumable text.
generateRipple関数Builds a seeded block-room family and accepts it only after a bounded uniqueness proof.
hintRipple関数Offers a cell only when the current public entries leave one proved completion.
isRippleBoard関数Whether the value has valid native Ripple dimensions, clues and data.
mountRipple関数Mount the native Ripple player in a host element and return its cleanup and control handle.
newRipple関数Create the initial immutable Ripple game from a valid board.
progressRipple関数Partial progress check; missing entries are allowed, but impossible room/ripple pairs are flagged.
RIPPLE_MAX_ATTEMPTS定数The native Ripple generation-attempt limit.
RIPPLE_MAX_NODES定数The native Ripple search-node budget.
RIPPLE_MAX_SIDE定数The maximum supported Ripple board dimension.
RIPPLE_MIN_SIDE定数The minimum supported Ripple board dimension.
RIPPLE_PLAY_STYLE定数Scoped native Ripple board and player CSS.
RIPPLE_STRINGS定数Native English and Japanese labels and announcements for Ripple.
RippleBoard型Ripple dimensions and printed clues in their native row-major representation.
RippleCheck型The Ripple completion result and cells that violate its native rules.
RippleDrawOptions型Current Ripple marks or entries, selection, errors and native SVG appearance choices.
rippleFinished関数Whether this Ripple game satisfies its complete native rules.
RippleGame型The immutable Ripple board, current entries or marks, undo history and assistance state.
RippleLanguage型The native English or Japanese display language for Ripple.
RippleMaterial型A supported material of the native Ripple board.
RippleMount型The mounted Ripple game and progress, native controls and cleanup handle.
RippleMountOptions型The initial Ripple board, native progress, appearance and host event callbacks.
RipplePieces型A supported native Ripple mark or piece appearance.
RipplePuzzle型A seeded Ripple board with its verified solution.
rippleRoomSizes関数Read the size of each room in a Ripple Effect board.
RippleSolve型A bounded Ripple solve result: answer count, first solution, node work and whether the search completed.
setRippleValue関数Apply the requested native Ripple entry or mark to a new immutable game; invalid or fixed targets stay unchanged.
solveRipple関数Counts rule-valid fillings within an explicit node budget.
toggleRippleNote関数Apply the requested native Ripple entry or mark to a new immutable game; invalid or fixed targets stay unchanged.
undoRipple関数Return the Ripple game with its previous marks or entries restored, or unchanged when there is no undo history.

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

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