Live demo · the robot's own algorithm
The same brain as the real robot: it explores, recognises places it has been, proves the shortest way, drives home and races it. Loops included.