// Create battles file (and delete old ones), and execute battles
if (executes.equals("YES")) {
final boolean isMelee = melee.equals("YES");
boolean ready;
PrepareBattles battles = new PrepareBattles(parameters);
if (isMelee) {
System.out.println("Preparing melee battles list ...");
ready = battles.createMeleeBattlesList();
} else {
final boolean isSmartBattles = ratingsdownloaded && runonly.equals("SERVER");
if (isSmartBattles) {
System.out.println("Preparing battles list using smart battles...");
ready = battles.createSmartBattlesList();
} else {
System.out.println("Preparing battles list...");
ready = battles.createBattlesList();
}
}
// Disable the -DPRARALLEL and -DRANDOMSEED options
System.setProperty("PARALLEL", "false"); // TODO: Remove when robot thread CPU time can be measured