This commit is contained in:
SpudGunMan
2024-09-30 03:04:38 -07:00
parent 4bcc6ef1f2
commit cd3226df21
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -483,7 +483,7 @@ def handleGolf(nodeID, message):
# create new player
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 = "Welcome to 🏌️GolfSim⛳️"
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 += playGolf(nodeID=nodeID, message=message)
+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 += "Club?[D, H, M, L, G, W]🏌️"
msg += f"\nClub?[D, H, M, L, G, W]🏌️"
# save player's current game state, keep stroking
for i in range(len(golfTracker)):
+2 -2
View File
@@ -16,10 +16,10 @@ def chooseDifficultyMMind(message):
msg += "Please enter either '(N)ormal' or '(H)ard'"
if usrInput == "n":
msg += "The colors to choose from are: R🔴, Y🟡, G🟢, B🔵"
msg += f"The colors to choose from are:\nR🔴, Y🟡, G🟢, B🔵"
elif usrInput == "h":
valid_colorsMMind += "OP"
msg += "The colors to choose from are R🔴, Y🟡, G🟢, B🔵, O🟠, P🟣"
msg += f"The colors to choose from are\nR🔴, Y🟡, G🟢, B🔵, O🟠, P🟣"
return msg