Beispiel #1
0
 def pretty_print(self):
     """Print stage, either cup match pairs or league table."""
     if self.type == StageType.Cup:
         for round in self.rounds:
             for match in round:
                 print match
     else:
         for i in range(len(self.groups_club_names)):
             print "Group", (i + 1)
             table = LeagueTable.create_league_table(self.rounds, self.groups_club_names[i], self.setup.pointsperwin)
             print "%-20s %3s %3s %3s %3s %3s %3s %3s %3s" % ("Name", "P", "W", "D", "L", "F", "A", "T", "P")
             LeagueTable.print_league_table(table)