simulateRace()

This commit is contained in:
Artem Didytschuk 2020-12-06 20:13:38 +01:00
parent 4f6f24ff82
commit efe7c140f1
1 changed files with 10 additions and 0 deletions

View File

@ -13,6 +13,16 @@ public class Competition
athletes.append(new Athlete());
}
public void simulateRace(){
if(!athletes.isEmpty()){
Racesimulator racesim = new Racesimulator();
athletes.toFirst();
while(athletes.getContent()!=null){
racesim.simulate(athletes.getContent())
}
}
}