Exemple #1
0
        private int GetPart1Solution()
        {
            PaintableHullSection hull  = new PaintableHullSection();
            PaintingRobot        robot = new PaintingRobot(hull, 0);

            return(robot.PaintedPanels);
        }
Exemple #2
0
        private string GetPart2Solution()
        {
            PaintableHullSection hull  = new PaintableHullSection();
            PaintingRobot        robot = new PaintingRobot(hull, 1);

            return(hull.GetAreaOfInterest());
        }
 public RobotInputProvider(PaintableHullSection hullSection, PaintingRobot paintingRobot)
 {
     _robot = paintingRobot;
     _hull  = hullSection;
 }