Exemple #1
0
            public IemUtils.IIemTeam GetTeamWithLeastPlayers()
            {
                IemUtils.IIemTeam team = null;
                int count = 999;

                foreach (var iemTeam in Teams.Values)
                {
                    if (iemTeam.Players.Count < count)
                    {
                        team  = iemTeam;
                        count = iemTeam.Players.Count;
                    }
                }
                return(team);
            }
Exemple #2
0
            public override IemUtils.IIemTeam Winner()
            {
                IemUtils.IIemTeam team = null;
                int bestscore          = 0;

                foreach (var iemTeam in Teams.Values)
                {
                    if (iemTeam.Score > bestscore)
                    {
                        bestscore = iemTeam.Score;
                        team      = iemTeam;
                    }
                    IemUtils.GLog("best score is " + bestscore);
                }
                return(team);
            }