How to make a basketball timetable

As you can see from the table, you have three venues, and each venue has two games every day.

So there are six games a day and each team plays one game a day. There are many arrangements:

In order to be fair, the schedule is arranged according to the number 1- 17, and then 17 draws lots for the team to get the corresponding schedule.

Divided into ABCD group: ABC group with 4 teams and D group with 5 teams. The top two players in each group will be selected for promotion, and the score for winning a game is 1. Those with the same integral will be compared with the winning relationship and the same integral in turn to get the net winning integral. Produce the top eight.