private static PlayerResponseSurrenderGameViewItem GetPlayerSurrenderGameViewItem(Player player)
        {
            var playerSurrenderGameViewItem = new PlayerResponseSurrenderGameViewItem
            {
                Id   = player.Id,
                Name = player.Name
            };

            return(playerSurrenderGameViewItem);
        }
        private static IEnumerable <PlayerResponseSurrenderGameViewItem> GetPlayerSurrenderGameViewItems(IEnumerable <Player> bots)
        {
            var playerSurrenderGameViewItems = new List <PlayerResponseSurrenderGameViewItem>();

            foreach (var bot in bots)
            {
                var playerSurrenderGameViewItem = new PlayerResponseSurrenderGameViewItem
                {
                    Id   = bot.Id,
                    Name = bot.Name
                };
                playerSurrenderGameViewItems.Add(playerSurrenderGameViewItem);
            }
            return(playerSurrenderGameViewItems);
        }