def printCurrentRankingNicely(self):
     i = 1
     s = "\nRanking:\n"
     for t in self.getRanking():
         s += tools.positionAsString(i) + ": " + t[0] + "\n"
         i += 1
     return s
 def printFinalRankingNicely(self):
     i = 1
     s = "\nFinal Ranking:\n"
     for t in self.final_ranking:
         s += tools.positionAsString(i) + ": " + t + "\n"
         i += 1
     return s
    def printBestLapTimesNicely(self):

        best_time_tuples = self.getSortedBestTimes()
        s = '\nBest laps:\n'
        if len(best_time_tuples) > 0:
            i = 1
            for t in best_time_tuples:
                s += (tools.positionAsString(i)
                      + ': ' + t[0] + ' - '
                      + tools.convertFloatToTimeStr(t[1]) + '\n')
                i += 1
        else:
            s += 'No lap time available yet\n'
        return s