From 3dd6da4684501d422b539fd5459e101307809957 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 23 Feb 2025 20:02:15 -0800 Subject: [PATCH] Update hamtest.py --- modules/games/hamtest.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/games/hamtest.py b/modules/games/hamtest.py index c45e577..463c5f6 100644 --- a/modules/games/hamtest.py +++ b/modules/games/hamtest.py @@ -117,13 +117,13 @@ class HamTest: level = self.game[id]['level'] if level == 'extra': - # passing score for extra is 37 - pool = 50 + # passing score for extra is 37 out of 50 + passing = 37 else: - # passing score for technician and general is 26 - pool = 35 + # passing score for technician and general is 26 out of 35 + passing = 26 - if score >= pool: + if score >= passing: msg = f"Game over. Score: {score} 73! You passed the {level} exam." else: # find the most common section of the questions missed