From abeb28c9cc901569dd58dc44ac1668863e3d2ede Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 2 Oct 2024 23:20:59 -0700 Subject: [PATCH] Update golfsim.py --- modules/golfsim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/golfsim.py b/modules/golfsim.py index 729d254..f7b5a1b 100644 --- a/modules/golfsim.py +++ b/modules/golfsim.py @@ -110,7 +110,7 @@ def getHighScoreGolf(nodeID, strokes, par): with open('golfsim_hs.pkl', 'wb') as f: pickle.dump(golfHighScore, f) - if strokes > golfHighScore[0]['strokes']: + if strokes < golfHighScore[0]['strokes']: # player got new low score which is high score golfHighScore[0]['nodeID'] = nodeID golfHighScore[0]['strokes'] = strokes