Unofficial Schedule · 2027–28 Season · Price 25¢

The Hardwood Scheduler

Thirty teams. 1,230 games. Not one road back-to-back.

The NBA builds its schedule with a solver and a long list of rules. This is a full 2027–28 season built the same way, by clingo, a logic solver: the NBA's 82-game formula, the NBA Cup, Christmas, the All-Star break, and one house rule the real league doesn't have. Back-to-backs only happen at home. Nobody plays a game, packs, and flies overnight to play again.

The 2027–28 Season

Unpacking the schedule

The Box Score

Trips and stands count games in a row; rest counts nights. Miles are straight-line flights between arenas, starting and ending at home. Click a team to follow its season.

NBA Cup groups

Each team plays its four group mates once, two at home and two away, on the Tuesday and Friday Cup nights from Oct 29 to Nov 26. Those games count toward the 82.

League office

How the season gets made

Stage 1: who plays whom. The NBA formula. Four games against each division rival. Against the other ten teams in your conference, four games against six and three against four, with two of the “threes” from each other division. Two games against every team in the other conference. That's 82 games, 41 at home. clingo also draws the six NBA Cup groups.

Stage 2: which night. Every game gets a date, and no schedule may break these rules:

  1. One game a night.
  2. Back-to-backs happen at home. If a team plays two nights running, both games are in its own building.
  3. No three games in three nights, and no four in five.
  4. Every 16 nights hold a home game and a road game, so no trip or homestand runs too long.
  5. No more than four nights off, except around the All-Star break.
  6. Rematches at least five nights apart.
  7. Cup nights belong to the Cup. Every group game lands on one, and nothing else does.
  8. At least four games every night there's basketball. Dark on Thanksgiving, Christmas Eve, the All-Star break (Feb 17–22), the Cup knockout nights and the eve of the finale.
  9. Tradition: two games on Opening Night, five on Christmas, eight on MLK Day, and all thirty teams on the final Sunday.

How it's solved. One clingo run over all 1,230 games and 174 nights never finishes, and solving three weeks at a time paints itself into a corner by January. So a short Python script drafts the whole season in a tenth of a second, keeping the formula, the Cup and the traditions but breaking hundreds of the other rules. Then clingo repairs it, a few weeks at a time: it frees the games in that stretch, holds the rest of the season fixed, and re-dates them to break fewer rules. Hundreds of rounds later nothing is broken. Finally, clingo checks every rule over the whole season at once, and a separate Python script checks every rule again, game by game.

One thing the house rule changes. All thirty teams play on the final Sunday, so nobody can be on the road on Saturday, and no two Sunday hosts can meet on Saturday either. The night before the finale has to be dark.

What's made up. The NBA hasn't announced 2027–28 dates, so the calendar follows the 2026–27 pattern and the reported Miami All-Star weekend. There are no arena conflicts or TV windows, since that data isn't public. The real league also holds two games per team until the Cup knockouts are known. Here all 82 are scheduled up front.

The rulebook

    
The scale model

Solve it live: eight clubs, 1975–76

The full season takes minutes on a laptop. This eight-club league uses the same formula and the same house rule, small enough for clingo to solve in your browser in about a second. Flip the switch to drop the house rule and watch road back-to-backs come back.

Lacing up clingo
League office

The scale model's bylaws

Who plays whom comes straight from the NBA formula, shrunk down. Two divisions of four. You play each division rival four times, two at home and two away, and each club in the other division twice, once in each building. That's 20 games a club and 80 in the league, from November 1 to New Year's Eve.

The one decision clingo makes is the date of each game. Everything else is a bylaw. Each one is a line that says “no schedule may look like this”:

  1. One game a night. Nobody plays twice on the same date.
  2. No three games in three nights.
  3. Back-to-backs happen at home. If a club plays two nights running, both games are in its own building, so nobody plays, packs and flies overnight. Untick the switch to drop this bylaw and watch the road back-to-backs come back.
  4. No road trip longer than ten days. Every ten-day stretch has a home game.
  5. No homestand longer than twelve days. Every twelve-day stretch has a road game.
  6. No week off. Every club plays at least once in any seven days.
  7. A week between rematches. The same two clubs never meet twice within seven days.
  8. Three games a night, tops, so the radio network can carry them all.
  9. Opening Night and New Year's Eve: all eight clubs play.
  10. Christmas doubleheader: exactly two games, both division rivalries.

Cut the mileage adds one line, a #minimize over every club's flight miles, and shows each cheaper schedule as clingo finds it. Proving one is the cheapest would take far longer, so it stops after ten seconds. A club stays wherever it last played until its next game, and everyone flies home after New Year's Eve.

The scale model's rulebook Download schedule.lp