Ejemplo n.º 1
0
        public void CalculateNextState()
        {
            int activeNeighbourCount = Cubes
                                       .CountActive(Neighbours.Adjustments, this.Position.X, this.Position.Y, this.Position.Z);

            this.NextState = this.State == true ? activeNeighbourCount >= 2 && activeNeighbourCount <= 3 : activeNeighbourCount == 3;
        }