リファレンス
波及効果の規則
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. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。