all repos — WarBot2020 @ 56492d3510e181775ae1a37b7fb98dbbebd4c118

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

README.md (view raw)

 1# WarBot2020
 2Bootleg version of "WorldWarBot 2020" done in Java and without a map.
 3
 4Usage:
 5```
 6executable.jar soglia_popolazione verbose n_guerre
 7```
 8- soglia_popolazione is an integer (default 12000)
 9- verbose is a boolean. true gives you the detailed output of a single war, false gives you generic statistics on n_guerre wars (default true)
10- n_guerre is the number of wars to simulate (default 500)
11
12The program will load the default values if you don't always put all three parameters.
13
14# Data collection
15The program reads coordinates and populations from data.txt in this format:
16```
17country-name(String with no spaces) population(int) latitude(double) longitude(double)
18```
19For example:
20```
21Barcellona-Pozzo-di-Gotto 41293 38.1487398 15.2113962
22```
23
24I will soon be working on a version without a population filter.