Ejemplo n.º 1
0
 public void FindNeighbours_OnBorder_ReachesOver() =>
 NeighbourFinderBase.FindNeighbours_OnBorder(new OpenNeighbourFinder <StandardCell, StandardCellGrid>(), res => res.Count(c => c.IsAlive) == 2);
Ejemplo n.º 2
0
 public void FindNeighbours_OnBorder_DoesNotReach() =>
 NeighbourFinderBase.FindNeighbours_OnBorder(new ClosedNeighbourFinder <StandardCell, StandardCellGrid>(), res => !res.Any(c => c.IsAlive));
Ejemplo n.º 3
0
 public void FindNeighbours_NoBorders_TwoAlive() =>
 NeighbourFinderBase.FindNeighbours_NoBorders_TwoAlive(new OpenNeighbourFinder <StandardCell, StandardCellGrid>());
Ejemplo n.º 4
0
 public void FindNeighbours_NoBorders_NoneAlive() =>
 NeighbourFinderBase.FindNeighbours_NoBorders_NoneAlive(new ClosedNeighbourFinder <StandardCell, StandardCellGrid>());