示例#1
0
    public int part_one(string input)
    {
        var space = new Space();

        space.AddRange(input.CharPixels().Where(p => p.Value == '#').Select(p => new Point3D(p.Key.X, p.Key.Y, 0)));
        space.Generations(6);
        return(space.Count);
    }