Piece型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A piece from the queue: its cells relative to the top-left of its bounding box.
インポート
import type { Piece } from "@johnmorrisdotca/narabe";
定義
type Piece = {
cells: readonly PieceCell[];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
cells | readonly PieceCell[] |
例
import type { Piece } from "@johnmorrisdotca/narabe";
const value: Piece = {cells:[{row:0,col:0,stone:"black"},{row:0,col:1,stone:"white"}]};
console.log(value);{
cells: [
{ row: 0, col: 0, stone: 'black' },
{ row: 0, col: 1, stone: 'white' }
]
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。