Bunco Simulator

Diff

Differences From Artifact [4468a7]:

To Artifact [b91166]:


98
99
100
101
102
103
104




















105
106
107
108
109
110
111

def sms_table_move(player, wonlost, table_from, table_to):
    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 excel_sheet(title):
    wb = xlsxwriter.Workbook('bunco.xlsx')
    ws = wb.add_worksheet('Overview')
    style = {}

    col_heading = wb.add_format({'font_name': 'Back Issues BB', 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131

def sms_table_move(player, wonlost, table_from, table_to):
    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 = {}

    col_heading = wb.add_format({'font_name': 'Back Issues BB',