diff --git a/libstormgames.py b/libstormgames.py index 8fa15b6..ed84171 100755 --- a/libstormgames.py +++ b/libstormgames.py @@ -74,6 +74,11 @@ class scoreboard(): def Increase_Score(self, points = 1): self.score += points + def New_High_Score(self): + for i, j in enumerate(self.oldScores): + if self.score > j: return i + 1 + return None + def Update_Scores(self): # Update the scores for i, j in enumerate(self.oldScores):