Kaynağa Gözat

more preparation

master
Dimitri Merejkowsky 5 yıl önce
ebeveyn
işleme
08706724a5
1 değiştirilmiş dosya ile 14 ekleme ve 2 silme
  1. +14
    -2
      sources/hangman/scores.py

+ 14
- 2
sources/hangman/scores.py Dosyayı Görüntüle

@@ -7,10 +7,22 @@ def parse_scores():
return res


def main():
scores = parse_scores()
def print_scores(scores):
print("Tableau des résultats:")
for name, score in scores.items():
print(name, score)


def register_score(scores, name, new_score):
pass


def main():
scores = parse_scores()
name = input("nom: ")
new_score = input("score: ")
register_score(scores, name, new_score)
print_scores(scores)


main()