Exemplo n.º 1
0
 private static bool AllBombsMarked(FieldWithNeighbourhood field)
 {
     return(field.RemainingMines == 0);
 }
Exemplo n.º 2
0
 private static IEnumerable <Field> HiddenNeighbours(FieldWithNeighbourhood f) => f.Neighbours.Where(x => !x.IsRevealed);
Exemplo n.º 3
0
 private static bool HasHiddenNeighbours(FieldWithNeighbourhood f) => f.Neighbours.Any(x => !x.IsRevealed);
Exemplo n.º 4
0
 private static bool AllNeighboursLeftAreMines(FieldWithNeighbourhood f) => f.Neighbours.Count(x => !x.IsRevealed) == f.RemainingMines;