Exemplo n.º 1
0
        public int CountCycles(List <string> input)
        {
            var cube = CubeParser.Parse(input);

            var cycled = cube.Cycle();

            int active = cycled.Active;

            return(active);
        }
Exemplo n.º 2
0
        public void FirstStarExample()
        {
            var input = new List <string>
            {
                ".#.",
                "..#",
                "###"
            };

            var cube = CubeParser.Parse(input);

            var cycled = cube.Cycle();

            int active = cycled.Active;

            Assert.Equal(112, active);
        }