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

JudoSidetype

What one side scored in a contest. Anything left out is none.

Import it

import type { JudoSide } from "@johnmorrisdotca/taisen-brackets/layout";

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

interface JudoSide {
    ippon?: boolean;
    wazaAri?: number;
    yuko?: number;
    shido?: number;
}

Members

NameTypeDescription
ippon (optional)boolean | undefined

Ippon: the contest ends.

wazaAri (optional)number | undefined

Waza-ari, 0 to 2; a second one is waza-ari-awasete-ippon.

yuko (optional)number | undefined

Yuko: counted, never added up to a waza-ari.

shido (optional)number | undefined

Shido (the penalties), 0 to 3; the third is hansoku-make (indirect).

Examples

import { judoOutcome, type JudoSide } from "@johnmorrisdotca/taisen-brackets";

const blue: JudoSide = { wazaAri: 1, yuko: 1, shido: 2 };
console.log(judoOutcome({ sides: [{}, blue] }).winner);
1

What it prints (run when this page was built)

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