Skip to contents

Simulates the IPL playoff bracket (Qualifier 1, Eliminator, Qualifier 2, Final).

Usage

simulate_ipl_playoffs(teams)

Arguments

teams

Data frame. Top 4 teams with columns: team, elo, position

Value

List with winner and path

Examples

if (FALSE) { # \dontrun{
teams <- data.frame(
  team = c("Team A", "Team B", "Team C", "Team D"),
  elo = c(1600, 1550, 1520, 1480),
  position = 1:4
)
result <- simulate_ipl_playoffs(teams)
result$champion
} # }