@@ -120,11 +120,16 @@ ws.write(row, 0, player.name, row_heading) for r in range(g.current_round()): col = r + 1 ws.write(row, col, player.round_scores[r], score_style) + + # derive losses from wins + losses = [int(not x) for x in player.round_wins] ws.write(row, end_col + 1, sum(player.round_scores), total_style) + ws.write(row, end_col + 2, sum(player.round_wins), total_style) + ws.write(row, end_col + 3, sum(losses), total_style) ws.write(row, end_col + 4, sum(player.round_bunco_counts), total_style) ws.write(row, end_col + 5, sum(player.round_roll_counts), total_style) wb.close()