Пример #1
0
        /// <summary>
        /// Initializes a new instance of the Empty class.
        /// </summary>
        public Empty()
            : base(0, 0)
        {
            var pattern = new[]
            {
                new[] { 0 }
            };

            SetPattern(pattern);
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the FivePoint class.
        /// </summary>
        public FivePoint()
            : base(stabilizesAt: 1, stablePopulation: 4)
        {
            var pattern = new[]
            {
                new[] { 1, 0, 1, 0 },
                new[] { 0, 1, 0, 0 },
                new[] { 1, 0, 1, 0 },
                new[] { 0, 0, 0, 0 }
            };

            SetPattern(pattern);
        }
Пример #3
0
        /// <summary>
        /// Initializes a new instance of the Acorn class.
        /// </summary>
        public Acorn()
            : base(stabilizesAt: 5206, stablePopulation: 633)
        {
            var pattern = new[]
            {
                new[] { 0, 0, 0, 0, 0, 0, 0, 0 },
                new[] { 0, 0, 0, 0, 0, 0, 0, 0 },
                new[] { 0, 1, 0, 0, 0, 0, 0, 0 },
                new[] { 0, 0, 0, 1, 0, 0, 0, 0 },
                new[] { 1, 1, 0, 0, 1, 1, 1, 0 },
                new[] { 0, 0, 0, 0, 0, 0, 0, 0 },
                new[] { 0, 0, 0, 0, 0, 0, 0, 0 },
                new[] { 0, 0, 0, 0, 0, 0, 0, 0 }
            };

            SetPattern(pattern);
        }