all repos — WarBot2020 @ d44397ea3ecd40bae92ad791bfe4e0ef85bfdffe

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

Delete StatComune.java
Bi-Rabittoh andronacomarco@gmail.com
Sat, 06 Apr 2019 02:45:27 +0200
commit

d44397ea3ecd40bae92ad791bfe4e0ef85bfdffe

parent

c4ea0c66f375a763d21fceff6adbae190ba7ecbe

1 files changed, 0 insertions(+), 37 deletions(-)

jump to
D siciliaguerrabot2020/StatComune.java

@@ -1,37 +0,0 @@

-/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package siciliaguerrabot2020; - -/** - * - * @author Marco - */ -public class StatComune implements Comparable<StatComune> { - private final String nome; - private int n_vincite; - - public StatComune(String nome) { - this.nome = nome; - this.n_vincite = 0; - } - - public String getNome() { - return nome; - } - - public double getWinrate(int n_partite) { - return (100 * (double)n_vincite / (double)n_partite); - } - - public void winWar(){ - n_vincite++; - } - - @Override - public int compareTo(StatComune thi) { - return (thi.n_vincite - this.n_vincite); - } -}