simulateRace()
This commit is contained in:
parent
4f6f24ff82
commit
efe7c140f1
|
@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue