clubOrder🥪

resolve https://github.com/SpudGunMan/meshing-around/issues/75
This commit is contained in:
SpudGunMan
2024-09-30 16:56:41 -07:00
parent 7796d03e21
commit f85bdb7d02
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -488,7 +488,7 @@ def handleGolf(nodeID, message):
logger.debug("System: GolfSim: New Player: " + str(nodeID))
golfTracker.append({'nodeID': nodeID, 'last_played': time.time(), 'cmd': 'new', 'hole': 1, 'distance_remaining': 0, 'hole_shots': 0, 'hole_strokes': 0, 'hole_to_par': 0, 'total_strokes': 0, 'total_to_par': 0})
msg = f"Welcome to 🏌️GolfSim⛳️\n"
msg += f"Clubs: (D)river, (H)igh Iron, (M)id Iron, (L)ow Iron, (G)ap Wedge, Lob (W)edge\n"
msg += f"Clubs: (D)river, (L)ow Iron, (M)id Iron, (H)igh Iron, (G)ap Wedge, Lob (W)edge\n"
msg += playGolf(nodeID=nodeID, message=message)
# wait a second to keep from message collision
+1 -1
View File
@@ -207,7 +207,7 @@ def playGolf(nodeID, message):
last_cmd = 'putt'
else:
msg += "You have " + str(distance_remaining) + " yards left."
msg += f"\nClub?[D, H, M, L, G, W]🏌️"
msg += f"\nClub?[D, L, M, H, G, W]🏌️"
# save player's current game state, keep stroking
for i in range(len(golfTracker)):