The draft_order function correctly catches an infinite loop because the games of 2011 don't include a team that the div_ranks functions says is a playoff team, the SD Chargers.
It looks like the chargers win the 3-way tie breaker with "conference record" but in real life the Broncos won the 3-way tie with the "record in common games" so they never looked at "conference record".
library(dplyr, warn.conflicts = FALSE)
games <- nflseedR::load_sharpe_games() %>%
dplyr::filter(season == 2011) %>%
dplyr::rename(sim = season)
games %>%
nflseedR::compute_division_ranks(.debug = TRUE) %>%
purrr::pluck("standings") %>%
dplyr::filter(division == "AFC West")
#> * 2021-02-08 15:33:19: Calculating team data
#> * 2021-02-08 15:33:19: Calculating head to head
#> * 2021-02-08 15:33:19: Calculating division rank #1
#> * 2021-02-08 15:33:19: DIV (3): Head-to-head
#> * 2021-02-08 15:33:19: DIV (3): Division Record
#> * 2021-02-08 15:33:20: DIV (3): Common Record
#> * 2021-02-08 15:33:20: DIV (3): Conference Record
#> * 2021-02-08 15:33:20: DIV (2): Head-to-head
#> * 2021-02-08 15:33:20: Calculating division rank #2
#> * 2021-02-08 15:33:20: DIV (2): Head-to-head
#> * 2021-02-08 15:33:20: DIV (2): Division Record
#> * 2021-02-08 15:33:20: DIV (2): Common Record
#> * 2021-02-08 15:33:20: DIV (2): Conference Record
#> * 2021-02-08 15:33:20: DIV (2): Strength of Victory
#> * 2021-02-08 15:33:20: Calculating division rank #3
#> * 2021-02-08 15:33:20: DIV (2): Head-to-head
#> * 2021-02-08 15:33:20: Calculating division rank #4
When trying to run draft order for the 2011 season this happens
Created on 2021-02-08 by the reprex package (v1.0.0)
The draft_order function correctly catches an infinite loop because the games of 2011 don't include a team that the div_ranks functions says is a playoff team, the SD Chargers.
It looks like the chargers win the 3-way tie breaker with "conference record" but in real life the Broncos won the 3-way tie with the "record in common games" so they never looked at "conference record".