@@ -100,10 +100,30 @@ if player.smsnumber: message = f"Having {wonlost} the last round, you move from {table_from} to {table_to}." sms(player.smsnumber, message) bunco.table_move_callback = sms_table_move + +def sms_all_situations(): + for table in g.tables: + for player in table.players: + if player.smsnumber: + sitch = table.get_player_situation(player) + msg = f"You are sitting at {table} with {sitch['teammate']} for a teammate. " \ + + f"{sitch['opponents'][0]} and {sitch['opponents'][1]} form the opposition." + sms(player.smsnumber, msg) + +def sms_all(message): + if enable_sms: + status("Sending SMS to all players…") + for player in g.players: + if player.smsnumber: + sms(player.smsnumber, message) + else: + status("SMS messaging is disabled!") + +display_dashboard() def excel_sheet(title): wb = xlsxwriter.Workbook('bunco.xlsx') ws = wb.add_worksheet('Overview') style = {}