Reference · Draw a bracket, a table or a road to the final
describeJudoContestfunction
The words of the state in a sentence, for the drawing's description.
Import it
import { describeJudoContest } from "@johnmorrisdotca/taisen-brackets";
Definition
function describeJudoContest(contest: JudoContest, options?: Pick<JudoBoardOptions, "locale" | "words">): string
Parameters
| Name | Type | Description |
|---|---|---|
contest | JudoContest | The contest. |
options (optional) | Pick<JudoBoardOptions, "locale" | "words"> | The language and the words. |
Returns
string
The description.
Examples
import { describeJudoContest } from "@johnmorrisdotca/taisen-brackets";
console.log(describeJudoContest({
white: { name: "Daiki Hoshino", code: "JPN" },
blue: { name: "Mathis Roussel", code: "FRA" },
sides: [{ wazaAri: 1, shido: 1 }, { yuko: 2, shido: 2 }],
clock: "2:14",
weight: "Men -66 kg",
round: "Final",
}));Men -66 kg. Final. white: Daiki Hoshino (JPN), waza-ari, Shido: 1 shido. blue: Mathis Roussel (FRA), 2 yuko, Shido: 2 shido. 2:14.What it prints (run when this page was built)