Skip to the content

Taisen Brackets対戦

Knockout brackets as SVG, from a list of ties.

Taisen (対戦, たいせん) is Japanese for a matchup: two sides facing each other. About the name

Contents

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

NameTypeDescription
winner0 | 1 | null

0 or 1, the side that won; null while nothing has decided it (level scores: golden score is next).

methodJudoMethod | null

How it was won, or null while undecided.

goldenScoreboolean
secondsnumber | null

The contest time in seconds, or null.

sidesreadonly [Required<JudoSide>, Required<JudoSide>]

The two sides with every count filled in.

pointsreadonly [number, number]

The value on the scoreboard (Articles 4 and 15: ippon 100, waza-ari 10, yuko 1; two waza-ari are ippon).

doubleHansokuMakeboolean

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 ] 240

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/taisen-brackets 0.20.0.