Skip to content

Commit

Permalink
fix: Correct parameter order in high score recording
Browse files Browse the repository at this point in the history
Fixed the order of parameters passed to add_score() method to match
the expected signature (wpm, accuracy, difficulty) instead of
(difficulty, wpm, accuracy).
  • Loading branch information
Hassan Shabbir Ahmed committed Nov 30, 2024
1 parent f9e66e5 commit 46d9cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ def end_test(self) -> None:

results = self.game.calculate_results(self.input_field.get())
self.high_scores.add_score(
self.game.difficulty,
results['wpm'],
results['accuracy']
results['accuracy'],
self.game.difficulty
)

self.input_field.configure(state='disabled')
Expand Down

0 comments on commit 46d9cf1

Please sign in to comment.