Fungi use efficient algorithms for the exploration of microfluidic networks.