Пример #1
0
 /// <summary>
 /// Determinal whether all neighbours are occupied by the specified player type.
 /// </summary>
 /// <param name="playerType">Type of the player.</param>
 /// <returns></returns>
 public bool AllNeighboursAreOccupiedBy(PlayerType playerType)
 {
     return(Neighbours.All(neighbour => neighbour.IsOccupiedBy(playerType)));
 }
Пример #2
0
 public bool IsCovered()
 {
     return(Neighbours.All(x => x.CellState == CellState.Opened && x.CellType == CellType.EmptyCell));
 }