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

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

            return(hull.GetAreaOfInterest());
        }
예제 #3
0
 public RobotInputProvider(PaintableHullSection hullSection, PaintingRobot paintingRobot)
 {
     _robot = paintingRobot;
     _hull  = hullSection;
 }