public IEvolutionGame EvolutionnateGame() { return (new DefaultEvolution( ++round, evolvedLivingCoords.Coordonnates(), new List <IEvolutionGame>(this.History()) { new DefaultEvolution(round, livingCells) })); }
public IEnumerable <RelativeCoordonnate> RelativeCoord() { return(figures.Coordonnates().Select(coord => new RelativeCoordonnate(baseCoord.Select(), coord))); }
public Coordonnate Select() { return(board.Coordonnates().OrderBy(coord => coord, new CoordonnateCompare()).First()); }
public IEnumerable <Cell> Cells() { return(neighborhood.Coordonnates().SelectMany(coord => cellsToMatch.Cells().Where(cell => cell.Matche(coord)))); }
public IEnumerable <Coordonnate> Coordonnates() { return(coordonnates.Coordonnates().Where(coord => !cells.Cells().Any(cell => cell.Matche(coord)))); }
public IEnumerable <Cell> Cells() { return(neighborhoodCells.Coordonnates().Select(coord => cellFactory.Cellule(coord))); }