Emergent functional dynamics of link-bots