Update golfsim.py

This commit is contained in:
SpudGunMan
2024-10-02 23:20:59 -07:00
parent 2325f74581
commit abeb28c9cc
+1 -1
View File
@@ -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