Constraint型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
An exact count over unknown cells, with the clues that supplied it.
インポート
import type { Constraint } from "@johnmorrisdotca/jirai";
定義
type Constraint = {
cells: readonly number[];
mines: number;
sources: readonly number[];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
cells | readonly number[] | |
mines | number | |
sources | readonly number[] |
例
import type { Constraint } from "@johnmorrisdotca/jirai";
const value: Constraint = {cells:[0,1],mines:1,sources:[2]};
console.log(value);{ cells: [ 0, 1 ], mines: 1, sources: [ 2 ] }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。