Example #1
0
        private string GetScoreAnnouncement(MafiaGame game, int team1Score, int team2Score)
        {
            var ordered = game.ScoreGame(team1Score, team2Score).OrderByDescending(x => x.Value);

            string output = $"**Mafia Game: {game.Id}**\r\n    Mafia: ";

            foreach (var mafia in game.Mafia)
            {
                output += $"{mafia.Mention } ";
            }

            foreach (var score in ordered)
            {
                output += $"\r\n    {game.Users()[score.Key].Mention} = {score.Value}";
            }

            return(output);
        }