Reference · Where every tie sits
JudoOutcometype
A result checked and worked out.
Import it
import type { JudoOutcome } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
interface JudoOutcome {
winner: 0 | 1 | null;
method: JudoMethod | null;
goldenScore: boolean;
seconds: number | null;
sides: readonly [
Required<JudoSide>,
Required<JudoSide>
];
points: readonly [
number,
number
];
doubleHansokuMake: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
winner | 0 | 1 | null | 0 or 1, the side that won; |
method | JudoMethod | null | How it was won, or |
goldenScore | boolean | |
seconds | number | null | The contest time in seconds, or |
sides | readonly [Required<JudoSide>, Required<JudoSide>] | The two sides with every count filled in. |
points | readonly [number, number] | The value on the scoreboard (Articles 4 and 15: ippon 100, waza-ari 10, yuko 1; two waza-ari are ippon). |
doubleHansokuMake | boolean | Both sides were given the third shido: the contest is recorded 0-0 and nobody wins (Article 18.3.1). |
Examples
import { judoOutcome, type JudoOutcome } from "@johnmorrisdotca/taisen-brackets";
const outcome: JudoOutcome = judoOutcome({ sides: [{ yuko: 2 }, { wazaAri: 1, shido: 1 }], time: "4:00" });
console.log(outcome.winner, outcome.points, outcome.seconds);1 [ 2, 10 ] 240What it prints (run when this page was built)