From 21c0795ea91674cef052da5c670cd273e2abc2c6 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 30 Aug 2020 01:23:32 -0400 Subject: [PATCH] Updated scoreboard. --- libstormgames.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libstormgames.py b/libstormgames.py index a3597e8..3ce68ba 100755 --- a/libstormgames.py +++ b/libstormgames.py @@ -42,7 +42,7 @@ class scoreboard(): try: localConfig.add_section("scoreboard") except: - pass + speak("Could not create scoreboard.") self.score = startingScore self.oldScores = [] for i in range(1, 11): @@ -60,7 +60,7 @@ class scoreboard(): try: write_config() except: - pass + speak("Could not update configuration file." def Decrease_Score(self, points = 1): self.score -= points @@ -84,7 +84,7 @@ class scoreboard(): for i, j in enumerate(self.oldScores): if self.score > j: # Move the old high score down the list - if i < 10: + if i < 9: self.oldScores[i + 1] = j self.oldScores[i] = self.score break