Example #1
0
        private static string GetPoints(this CustomBasicList <PointF> points)
        {
            StrCat cats = new StrCat();

            points.ForEach(x => cats.AddToString($"{x.X}, {x.Y}", " "));
            return(cats.GetInfo());
        }
        public async Task GameOverAsync(int teamWon)
        {
            if (PlayerList.Count() <= 3)
            {
                SingleInfo = PlayerList.Single(items => items.Team == teamWon);
                await ShowWinAsync();

                return;
            }
            StrCat cats = new StrCat();

            PlayerList !.ForConditionalItems(thisplayer => thisplayer.Team == teamWon, thisPlayer =>
            {
                cats.AddToString(thisPlayer.NickName, ",");
            });
            await ShowWinAsync(cats.GetInfo());
        }