BoardSquare型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One square of the board drawn.
インポート
import type { BoardSquare } from "@johnmorrisdotca/kumimoji/ui";
定義
type BoardSquare = {
square: string;
row: number;
col: number;
tile: string | null;
glyph: string;
wild: boolean;
mark: TileMark | null;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
square | string | Its key, |
row | number | |
col | number | |
tile | string | null | The tile standing there, or null for an empty square. |
glyph | string | What is printed on the tile; "" for an empty square. |
wild | boolean | Whether the tile is a wild. |
mark | TileMark | null | How the tile stands; null for an empty square, or with no verdict. |
例
import type { BoardSquare } from "@johnmorrisdotca/kumimoji/ui";
const value: BoardSquare = {square:"0,0",row:0,col:0,tile:"c",glyph:"c",wild:false,mark:null};
console.log(value);{
square: '0,0',
row: 0,
col: 0,
tile: 'c',
glyph: 'c',
wild: false,
mark: null
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。