本文へ移動

Gunjin軍人

階級を隠す5つの対戦ゲームで、配置を非公開に保ち、表示や再生を共有し、1台の端末を交代して遊べます。

「軍人」は、兵士を表す言葉です。 名前について(英語)

目次

リファレンス · 表示・再生・プレイヤー

MatchResult型

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

Public outcome recorded when a match ends.

インポート

import type { MatchResult } from "@johnmorrisdotca/gunjin";

定義

type MatchResult = {
    winner: Player | null;
    reason: "objective-captured" | "capture-threshold" | "blocked" | "flag-won" | "flag-held" | "resigned" | "agreed-draw" | "repetition";
};

メンバー

名前型説明
winnerPlayer | null
reason"objective-captured" | "capture-threshold" | "blocked" | "flag-won" | "flag-held" | "resigned" | "agreed-draw" | "repetition"

例

import type { MatchResult } from "@johnmorrisdotca/gunjin";

const value: MatchResult = {winner:null,reason:"agreed-draw"};
console.log(value);
{ winner: null, reason: 'agreed-draw' }

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

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

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