Update stats.py

main
Marija Boiko 2024-01-29 09:10:11 +00:00
parent 7caa67e6c2
commit 23254b3d89
1 changed files with 10 additions and 10 deletions

View File

@ -4,7 +4,7 @@ class Stats():
def __init__(self):
self.reset_stats()
self.run_game = True
with open("highscore.txt", "r") as f:
with open("highscores.txt", "r") as f:
self.high_score = int(f.readline())
def reset_stats(self):
self.guns_left = 3