本文へ移動

Kumimoji組み文字

シードから配った英字やかなのタイルで、ひとりでも複数人の卓でも、単語を組み合わせて遊べます。

「組み文字」は文字を組み合わせることを表す言葉です。 名前について(英語)

目次

リファレンス · ブラウザーの卓

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;
};

メンバー

名前型説明
squarestring

Its key, squareAt(row, col).

rownumber
colnumber
tilestring | null

The tile standing there, or null for an empty square.

glyphstring

What is printed on the tile; "" for an empty square.

wildboolean

Whether the tile is a wild.

markTileMark | 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
}

出力(このページを作ったときに実行した結果)

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

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