all repos — WarBot2020 @ f394351b110dd251f4690d77996a47c6e725c0e9

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 13:35:05 +0200
commit

f394351b110dd251f4690d77996a47c6e725c0e9

parent

56492d3510e181775ae1a37b7fb98dbbebd4c118

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

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

@@ -90,7 +90,6 @@ ArrayList<Comune> lista = new ArrayList<>();

for(Comune c: lista_comuni){ lista.add(new Comune(c.getNome(), c.getPop(), new Centroide(c.getPos().x, c.getPos().y))); } - int turno = 1; Comune attaccante; Territorio vittima; int vivi = lista.size();

@@ -118,12 +117,12 @@ vivi--;

if(verbose) System.out.print(propVittima.getNome() + " รจ stata completamente sconfitta. " + vivi + " comuni rimanenti.\n"); } else - System.out.println(""); + if(verbose) + System.out.println(""); Collections.sort(lista); if (vivi == 1){ break; } - turno++; } return attaccante; }