Learn R Programming

bracketeer (version 0.1.1)

tournament: Create an empty live tournament pipeline

Description

Create an empty live tournament pipeline

Usage

tournament(participants, auto_advance = TRUE)

Value

A tournament runtime object with no stages materialized yet.

Arguments

participants

Character vector of participant names, or a data.frame with a name column.

auto_advance

Logical scalar. Stored as the runtime default for future result-entry helpers.

Examples

Run this code
# Simple tournament with auto-advance
teams <- c("Lions", "Bears", "Eagles", "Wolves")
trn <- tournament(teams) |>
  round_robin("groups") |>
  single_elim("finals", take = top_n(2))

# Manual advance mode
trn_manual <- tournament(teams, auto_advance = FALSE) |>
  swiss("open", rounds = 3)

Run the code above in your browser using DataLab