本文へ移動

Tenka天下

2〜6人で、シードから始まる世界征服ゲームを遊べます。さいころでの戦い、カード、コンピューターの相手、ゲームの保存に対応します。

「天下」は、天の下に広がる世界を表す言葉です。 名前について(英語)

目次

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

TenkaCardHow型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

What a dressing is told about a card it is asked to draw.

インポート

import type { TenkaCardHow } from "@johnmorrisdotca/tenka/ui";

ほかのエクスポート元: @johnmorrisdotca/tenka/dressing

定義

type TenkaCardHow = {
    card: number;
    territory: number | null;
    kind: TenkaCardKind;
    map: TenkaMapKey;
    name: string;
    label: string;
    locale: TenkaLocale;
};

メンバー

名前型説明
cardnumber

The card's number: 0 and up the territories', then the two wild cards.

territorynumber | null

The territory it shows, or null for a wild card.

kindTenkaCardKind

Land, sea or air; or wild.

mapTenkaMapKey

The map the game is on, which decides what the territory looks like.

namestring

The territory's name in the table's language, or the word for a wild card.

labelstring

What a screen reader says for the card, in the table's language: "Land: Brazil".

localeTenkaLocale

The table's language.

例

import type { TenkaCardHow } from "@johnmorrisdotca/tenka/ui";

const value: TenkaCardHow = {card:0,territory:0,kind:"land",map:"world",name:"Alaska",label:"Alaska",locale:"en"};
console.log(value);
{
  card: 0,
  territory: 0,
  kind: 'land',
  map: 'world',
  name: 'Alaska',
  label: 'Alaska',
  locale: 'en'
}

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

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

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