2.6. The Standings Class
The last class we'll look at is the Standings class, which contains much of the logic of the application. The task of the Standings class is to process all the games that have been played, update Team data with the results of those games, and then put the teams into order according to their win-loss percentage and (the really interesting part) applying the various NFL tiebreaking procedures used to rank teams having the same win-loss percentage.
The Standings class is the main class of the application, insofar as it is the class that makes things happen. Table 2.6 shows the properties of the Standings class. Here we see that the Standings class contains a Teams object, which holds all the teams in the league, as well ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access