feat(highscore): create basic structure for highscore
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
import json
|
||||||
|
|
||||||
|
class Highscore:
|
||||||
|
def __init__(self):
|
||||||
|
self.path = "./highscore.json"
|
||||||
|
|
||||||
|
def load_scores(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def save_scores(self, scores):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def add_score(self, player_name, score_ects, time_survived, won):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def get_top_scores(self, number_of_top_scores):
|
||||||
|
pass
|
||||||
Reference in New Issue
Block a user