mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-21 09:02:33 +02:00
Update golfsim.py
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user