Ejemplo n.º 1
0
 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)
     });
 }
Ejemplo n.º 2
0
 public IEnumerable <Celeb> getCelebsInHat()
 {
     return(Celebs.Where(c => c.State == CelebState.IN_HAT));
 }
Ejemplo n.º 3
0
 public IEnumerable <Celeb> getGuessedCelebs()
 {
     return(Celebs.Where(c => c.State == CelebState.GUESSED));
 }
Ejemplo n.º 4
0
 public Celeb GetCelebById(int id)
 {
     return(Celebs.Where(c => c.Id == id).Single());
 }