simulateRace()
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user