They would gather twenty individuals into one robot which would then try out all kinds of different moves  with their legs and those who'd move furthest would be selected to mate in-between  and even mutate. and by that they would learn how to use those legs to move further and further and some of them will even learn how to cheat the system by moving the censors  that were measuring the distance. 