public GameStats GetStats() { return(new GameStats { NumberInHat = Celebs.Count(c => c.State == CelebState.IN_HAT), NumberGuessed = Celebs.Count(c => c.State == CelebState.GUESSED), NumberBurned = Celebs.Count(c => c.State == CelebState.BURNED) }); }
public IEnumerable <Celeb> getCelebsInHat() { return(Celebs.Where(c => c.State == CelebState.IN_HAT)); }
public IEnumerable <Celeb> getGuessedCelebs() { return(Celebs.Where(c => c.State == CelebState.GUESSED)); }
public Celeb GetCelebById(int id) { return(Celebs.Where(c => c.Id == id).Single()); }