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); }
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); }