public IEnumerable <Cell> Cells() { if (!this.cache.Any()) { this.cache.AddRange(cells.Cells()); } return(this.cache); }
public IEnumerable <Cell> Cells() { return(allCells.Cells().Select(cell => cell.Evolve(livingCells))); }
public BoardCells MatchingCells(BoardCells livingCells) { return(new MatchingCells(neighborhoodCells, livingCells.Cells())); }
public IEnumerable <Cell> Cells() { return(neighborhood.Coordonnates().SelectMany(coord => cellsToMatch.Cells().Where(cell => cell.Matche(coord)))); }
public IEnumerable <Cell> Cells() { return(cells.Cells().Where(cell => cell.Alive())); }
public IEnumerable <Coordonnate> Coordonnates() { return(coordonnates.Coordonnates().Where(coord => !cells.Cells().Any(cell => cell.Matche(coord)))); }
public IEnumerable <Coordonnate> Coordonnates() { return(livingCells.Cells().SelectMany(cell => cell.DeadNeighborhood(livingCells))); }