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)));
 }
示例#3
0
 public Coordonnate Select()
 {
     return(board.Coordonnates().OrderBy(coord => coord, new CoordonnateCompare()).First());
 }
示例#4
0
 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)));
 }