Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.22 KB

File metadata and controls

50 lines (37 loc) · 1.22 KB

Getting started

Node 24, pnpm, Docker.

Playground

pnpm install
pnpm dev

Tournament engine

cp .env.example .env
docker compose up -d --wait
pnpm --filter tournament-engine db:migrate
pnpm --filter tournament-engine cli --help

A six-player Swiss event. Ids are shortened.

$ pnpm --filter tournament-engine cli create "Weekly 12" --format swiss --rounds 3
9933…ef9c

$ pnpm --filter tournament-engine cli join 9933…ef9c Ana
18f1…8019
# join Ben, Cy, Dee, Eli, Fay the same way

$ pnpm --filter tournament-engine cli start 9933…ef9c
started with 6 participants

$ pnpm --filter tournament-engine cli show 9933…ef9c
Weekly 12  underway
phase 1  swiss  underway  round 1/3
  deba…3512  r1 #1  open      Ana vs Eli
  12ab…f892  r1 #2  open      Ben vs Cy
  a439…977b  r1 #3  open      Dee vs Fay

$ pnpm --filter tournament-engine cli report deba…3512 18f1…8019
recorded. 0 match(es) opened
# the last report of a round pairs the next one

$ pnpm --filter tournament-engine cli drop 1541…d15c
dropped, 1 match(es) forfeited

After the last round, topcut opens an elimination phase and end writes final standings. reopen <match-id> undoes a result and everything that depended on it.