Reference · Where every tie sits
JudoResulttype
The result of one judo contest, the sides in the order of the matchup's sides: the first is white, the second blue.
Import it
import type { JudoResult } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
interface JudoResult {
sides: readonly [
JudoSide,
JudoSide
];
method?: JudoMethod;
hansokuMake?: 0 | 1;
goldenScore?: boolean;
time?: number | string;
}
Members
| Name | Type | Description |
|---|---|---|
sides | readonly [JudoSide, JudoSide] | |
method (optional) | 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 (optional) | 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 (optional) | boolean | undefined | The contest went on to golden score, and the scores are the ones at its end. |
time (optional) | string | number | undefined | The contest time: seconds ( |
Examples
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);scoreWhat it prints (run when this page was built)