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

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

NameTypeDescription
sidesreadonly [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 winner.

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 (222) or "3:42". Regular time is 4 minutes; golden score runs past it.

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);
score

What it prints (run when this page was built)

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