all repos — WarBot2020 @ 84b6e0b0dbefcc7fd3abb59df413d7cbeda00514

Bootleg version of "WorldWarBot 2020" done in Java and without a map.

Add files via upload
Bi-Rabittoh andronacomarco@gmail.com
Thu, 04 Apr 2019 15:46:43 +0200
commit

84b6e0b0dbefcc7fd3abb59df413d7cbeda00514

parent

8a6b25009c535de7fa6f4f346bfd949731ed69f5

1 files changed, 3 insertions(+), 4 deletions(-)

jump to
M siciliaguerrabot2020/SiciliaGuerraBot2020.javasiciliaguerrabot2020/SiciliaGuerraBot2020.java

@@ -28,11 +28,11 @@ * @author Bi-Rabittoh

*/ public class SiciliaGuerraBot2020 { - @Option(names = "-v", description = "verbose output: this only simulates one war (default ${DEFAULT-VALUE})") + @Option(names = "-v", description = "only simulate one war (default ${DEFAULT-VALUE})") private boolean verbose = false; @Option(names = "-s", description = "load data from a specific file (default ${DEFAULT-VALUE})") private File source_file = new File("data.txt"); - @Option(names = "-m", description = "filters for max population (default ${DEFAULT-VALUE})") + @Option(names = "-m", description = "filter cities for max population (default ${DEFAULT-VALUE})") private int max_population = 12000; @Option(names = "-n", description = "sets number of wars to simulate (default ${DEFAULT-VALUE})") private int n_wars = 500;

@@ -41,8 +41,7 @@ private boolean helpRequested;

public static void main(String[] args) { - /*String[] debug_args = {"-m=50000", "-v"}; - SiciliaGuerraBot2020 par = CommandLine.populateCommand(new SiciliaGuerraBot2020(), debug_args);*/ + //String[] debug_args = {"-m=50000", "-h"}; SiciliaGuerraBot2020 par = CommandLine.populateCommand(new SiciliaGuerraBot2020(), debug_args); SiciliaGuerraBot2020 par = CommandLine.populateCommand(new SiciliaGuerraBot2020(), args); if(par.helpRequested){