Skip to content

Commit

Permalink
Update golfsim.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SpudGunMan committed Oct 3, 2024
1 parent 2325f74 commit abeb28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/golfsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abeb28c

Please sign in to comment.