Пример #1
0
        public List <Cell> GetNeighbours(Cell cell, List <Cell> worldCells)
        {
            var positions = cell.GetNeighboursPositions(_length);

            return(worldCells.Where(x => positions.Contains(x.Position)).ToList());
        }