For day 15 we are given the programme for a robot that can help us explore a maze.
So we wrote a controller that used a simple wall follower maze solving algorithm to map out the maze.
While mapping the maze the robot tells us the location of an oxygen cylinder. The answer to part one is the distance from the robot’s starting location to the oxygen cylinder.
The answer to part to is to calculate how long it would take the oxygen to fill the maze assuming that the oxygen can move one step per minute.
The following video shows a simulation of the oxygen filling the maze.