JudoResult型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The result of one judo contest, the sides in the order of the matchup's sides: the first is white, the second blue.
インポート
import type { JudoResult } from "@johnmorrisdotca/taisen-brackets/layout";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
interface JudoResult {
sides: readonly [
JudoSide,
JudoSide
];
method?: JudoMethod;
hansokuMake?: 0 | 1;
goldenScore?: boolean;
time?: number | string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
sides | readonly [JudoSide, JudoSide] | |
method (省略可) | JudoMethod | undefined | How it was won. Left out, it is worked out from the scores; fusen-gachi and kiken-gachi (no score can say so) need the matchup's |
hansokuMake (省略可) | 0 | 1 | undefined | The side (0 or 1) that was given a direct hansoku-make (a grave infringement): the other side wins by ippon. |
goldenScore (省略可) | boolean | undefined | The contest went on to golden score, and the scores are the ones at its end. |
time (省略可) | string | number | undefined | The contest time: seconds ( |
例
import { judoOutcome, type JudoResult } from "@johnmorrisdotca/taisen-brackets";
const result: JudoResult = { sides: [{ yuko: 2 }, { wazaAri: 1, shido: 1 }], goldenScore: false, time: "4:00" };
console.log(judoOutcome(result).method);score出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。