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

Wordstype

The words a drawing and a table use, in one language. Every one can be replaced (words), and a language can be added (defineLocale). Phrases take {name}-style holes.

Import it

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

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

interface Words {
    tbd: string;
    bye: string;
    walkover: string;
    champion: string;
    thirdPlace: string;
    other: string;
    aet: string;
    pens: string;
    aggregate: string;
    replay: string;
    aetLong: string;
    pensScore: string;
    aggregateLong: string;
    inGames: string;
    bestOf: string;
    round: string;
    roundOf: string;
    tieVs: string;
    tieScore: string;
    scoreText: string;
    pictureWins: string;
    winnerIs: string;
    championIs: string;
    finalLine: string;
    summary: string;
    summaryOne: string;
    sep: string;
    end: string;
    note: string;
    noteJoin: string;
    columnRound: string;
    columnTie: string;
    columnNote: string;
    columnDate: string;
    title: string;
    roadTitle: string;
    roadVs: string;
    roadGroup: string;
    roadFt: string;
    roadAet: string;
    roadPens: string;
    roadWon: string;
    roadLost: string;
    roadDrew: string;
    roadQuarterFinal: string;
    roadSemiFinal: string;
    roadTableTeam: string;
    roadTableOpponent: string;
    roadTableScore: string;
    roadTableDecided: string;
    roadTableResult: string;
    roadCaption: string;
    roadName: string;
    roadSummary: string;
    roadFinal: string;
    roadChampion: string;
    roadToPlay: string;
    vs: string;
    at: string;
    groupName: string;
    colPlayed: string;
    colWon: string;
    colDrawn: string;
    colLost: string;
    colDiff: string;
    colPoints: string;
    playIn: string;
    playInWinner: string;
    playInLoser: string;
    seedSlot: string;
    winnerOf: string;
    loserOf: string;
    judoIppon: string;
    judoWazaAri: string;
    judoYuko: string;
    judoIpponLong: string;
    judoWazaAriLong: string;
    judoYukoLong: string;
    judoMethodIppon: string;
    judoMethodAwasete: string;
    judoMethodScore: string;
    judoMethodHansoku: string;
    judoMethodFusen: string;
    judoMethodKiken: string;
    judoGolden: string;
    judoGoldenLong: string;
    judoTime: string;
    judoShidoOf: string;
    judoShidoShort: string;
    judoRepechage: string;
    judoBronze: string;
    judoRepechageBronze: string;
    judoWhite: string;
    judoBlue: string;
    judoWeightClass: string;
    judoWeightOver: string;
    judoMen: string;
    judoWomen: string;
    judoOsaekomi: string;
    judoShido: string;
    judoMat: string;
    judoContest: string;
    judoCoach: string;
    judoBoardTitle: string;
    judoCardTitle: string;
    judoQueueTitle: string;
    rankTitle: string;
    rankPoints: string;
    rankPointsShort: string;
    rankChampion: string;
    rankChampionLong: string;
    rankInterim: string;
    rankInterimLong: string;
    rankNew: string;
    rankNewLong: string;
    rankUp: string;
    rankDown: string;
    rankSame: string;
    rankRange: string;
    rankNone: string;
    rankJoin: string;
    rankNumberOnes: string;
    rankNumberOneIn: string;
    rankEntryTitle: string;
    rankColRanking: string;
    rankUnranked: string;
    rankMatchTitle: string;
    rankMeetings: string;
    rankNoMeetings: string;
    rankMore: string;
    medalTitle: string;
    medalNone: string;
    medalGold: string;
    medalSilver: string;
    medalBronze: string;
    medalGoldShort: string;
    medalSilverShort: string;
    medalBronzeShort: string;
    medalTotal: string;
    medalLine: string;
    medalRank: string;
    rbResult: string;
    rbBoutPresentation: string;
    rbBout: string;
    rbOfficials: string;
    rbReferee: string;
    rbJudge: string;
}

Members

NameTypeDescription
tbdstring

A side not known yet.

byestring

The word beside the score of a side that had a bye.

walkoverstring

A tie decided without a game (Matchup.walkover).

championstring

The label under the champion.

thirdPlacestring
otherstring

The heading over ties that lead nowhere near the final.

aetstring

Short notes in a box: after extra time, penalties, aggregate, replay.

pensstring
aggregatestring
replaystring
aetLongstring

The same in a sentence (tooltip, table, description).

pensScorestring

{a}, {b}: the shoot-out's score.

aggregateLongstring
inGamesstring

{n}: "in 7" (games).

bestOfstring

{n} games, {w} wins that settle it: "best of 7".

roundstring

{n}: a round with no name.

roundOfstring

{n}: "Round of 64", for a round the language has no word of its own for.

tieVsstring

{a}, {b}: an undecided tie.

tieScorestring

{a}, {b} the names, {sa}, {sb} the scores.

scoreTextstring

{a}, {b}: a score as written ("3–1").

pictureWinsstring

{team}, {score}: the result beside a pair in the picture layout: "CLE wins 3–2".

winnerIsstring

{name}.

championIsstring
finalLinestring

{round}, {tie}.

summarystring

{n} teams, {r} rounds.

summaryOnestring
sepstring

Joins the sentences of a description, and ends it.

endstring
notestring

{notes}: the notes after a tie in a sentence; and what joins several notes.

noteJoinstring
columnRoundstring
columnTiestring
columnNotestring
columnDatestring
titlestring

The <title> of a drawing with no title option.

roadTitlestring

The road-to-the-final chart (roadToFinal): its title, the "v" between two finalists, the group stage, FT, AET, {a}, {b} the shoot-out, and the results.

roadVsstring
roadGroupstring
roadFtstring
roadAetstring
roadPensstring
roadWonstring
roadLoststring
roadDrewstring
roadQuarterFinalstring

The names of the two rounds a road names one match of (the other rounds come from the round names of the language).

roadSemiFinalstring
roadTableTeamstring

The road's table: the headings, the caption ({a}, {b}), the chart's name ({a}, {b}, {title}), the summary ({a}, {b}, {an}, {bn}) and its sentences.

roadTableOpponentstring
roadTableScorestring
roadTableDecidedstring
roadTableResultstring
roadCaptionstring
roadNamestring
roadSummarystring
roadFinalstring

{a}, {b}, {score}, {how}.

roadChampionstring

{name}.

roadToPlaystring
vsstring

"vs": the tag between two sides of a tie in the columns layout, and between the shields.

atstring

The word between the two sides of a tie of the columns layout that names the home side (at: true): "AT".

groupNamestring

{n}: a group's name, "Group A" (n is the letter).

colPlayedstring

The heads of a group table: played, won, drawn, lost, goal difference, points.

colWonstring
colDrawnstring
colLoststring
colDiffstring
colPointsstring
playInstring

The heading over a bracket's play-in games.

playInWinnerstring

{a}, {b}: the seeds of the two games a box takes the winner (or the loser) of: "Winner 9/10", "Loser 7/8".

playInLoserstring
seedSlotstring

{n}: a seed's place, "Seed 7".

winnerOfstring

{name}: a side that is the winner or loser of another tie, in a sentence or a table: "Loser of {name}".

loserOfstring
judoIpponstring

Judo. The marks of the scores on a box (ippon, waza-ari, yuko), the same written out, and how a contest was won.

judoWazaAristring
judoYukostring
judoIpponLongstring
judoWazaAriLongstring
judoYukoLongstring
judoMethodIpponstring
judoMethodAwasetestring
judoMethodScorestring
judoMethodHansokustring
judoMethodFusenstring
judoMethodKikenstring
judoGoldenstring

Golden score, short and in a sentence.

judoGoldenLongstring
judoTimestring

{t}: the contest time ("3:42").

judoShidoOfstring

{name}, {n}: a side's shido ("Kenji Nakamura: 2 shido").

judoShidoShortstring

{a}, {b}: the sides' shido in a short note.

judoRepechagestring

The headings over the repechage contests and the bronze medal contests, alone and together; the sides' colours.

judoBronzestring
judoRepechageBronzestring
judoWhitestring
judoBluestring
judoWeightClassstring

{sex}, {w} (the number of kilograms, no sign): a weight category up to and including that weight ("Men -66 kg"), one over it ("Women +78 kg"), and the two sexes' words.

judoWeightOverstring
judoMenstring
judoWomenstring
judoOsaekomistring

The scoreboard of a contest: the osaekomi timer's label, the shido row's, a mat ({n}), a contest ({n}), the coach ({name}), and the drawing's default title.

judoShidostring
judoMatstring
judoConteststring
judoCoachstring
judoBoardTitlestring
judoCardTitlestring

The default titles of the contest card and of the mat queue board.

judoQueueTitlestring
rankTitlestring

Ranking lists (rankingList): the heading, "points" and its short form, the champion's mark ("C") and its words, the interim champion's, newly ranked ("NR") and its words, the movement in a sentence ({n} places), no change, which entries are shown ({a}, {b}, {n}) and an empty list.

rankPointsstring
rankPointsShortstring
rankChampionstring
rankChampionLongstring
rankInterimstring
rankInterimLongstring
rankNewstring
rankNewLongstring
rankUpstring
rankDownstring
rankSamestring
rankRangestring
rankNonestring
rankJoinstring

What joins the pieces of one entry in the description ("1, NAKAMURA Kenji, 412.50 points").

rankNumberOnesstring

Number-one cards (rankingNumberOnes): the heading, and {category}: "#1 in -57 kg". The entry list (rankingEntryList): the heading, the column heading over the rankings, and the mark of an athlete with none.

rankNumberOneInstring
rankEntryTitlestring
rankColRankingstring
rankUnrankedstring
rankMatchTitlestring

The head-to-head card (rankingMatchup): the heading, the heading over the previous meetings, no meetings yet, and {n}: "+3 more".

rankMeetingsstring
rankNoMeetingsstring
rankMorestring
medalTitlestring

The medal table (medalTable): the heading, no medals yet, the three medals and their one-letter marks, the total, and a row in a sentence ({g}, {s}, {b}, {t}).

medalNonestring
medalGoldstring
medalSilverstring
medalBronzestring
medalGoldShortstring
medalSilverShortstring
medalBronzeShortstring
medalTotalstring
medalLinestring
medalRankstring

A rank in the row sentence ({n}): "3", and "3位" in Japanese.

rbResultstring

The broadcast-style boards (resultsBoard, boutBoard, broadcastMedalTable): the sub bar's word for a result.

rbBoutPresentationstring

The bout presentation board (boutBoard): the first bar, the bout's number ({n}), the second bar, the referee and a judge ({n}).

rbBoutstring
rbOfficialsstring
rbRefereestring
rbJudgestring

Examples

import { drawBracket, type Words } from "@johnmorrisdotca/taisen-brackets";

const words: Partial<Words> = { champion: "Winner" };
console.log(drawBracket([{ sides: ["Aurora", "Harbour"], score: [2, 1] }, { sides: ["Cascade", "Delta"], score: [0, 1] }, { sides: ["Aurora", "Delta"], score: [3, 1] }], { words }).includes("Winner"));
true

What it prints (run when this page was built)

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