Ejemplo n.º 1
0
        public static Grid_Part1 Parse(string[] input)
        {
            var grid = new Grid_Part1 {
                States = { [0] = new Dictionary <int, List <Cube> >() }
            };

            for (var i = 0; i < input.Length; i++)
            {
                grid.States[0][i] = input[i]
                                    .Select(c => new Cube(c))
                                    .ToList();
            }


            return(grid);
        }
Ejemplo n.º 2
0
 public long Part1(string[] input)
 {
     return(Grid_Part1.Parse(input).RunCycle(6));
 }