mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-06 08:53:27 +02:00
enhance
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user