/// <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))); }
public bool IsCovered() { return(Neighbours.All(x => x.CellState == CellState.Opened && x.CellType == CellType.EmptyCell)); }