1.1 --- a/statistics/src/main/java/cz/xelfi/quoridor/statistics/EloList.java Wed Jan 13 16:57:00 2010 +0100
1.2 +++ b/statistics/src/main/java/cz/xelfi/quoridor/statistics/EloList.java Wed Jan 13 16:57:28 2010 +0100
1.3 @@ -52,7 +52,8 @@
1.4
1.5 Map<String, Double> players;
1.6 Map<String, Integer> playerGames;
1.7 - long modified = 0;
1.8 + long firstGame = 0;
1.9 + long lastGame = 0;
1.10 boolean originalList;
1.11
1.12
1.13 @@ -65,7 +66,6 @@
1.14 public EloList(EloList src){
1.15 this.players = new HashMap<String, Double>(src.players);
1.16 this.playerGames = new HashMap<String, Integer>(src.playerGames);
1.17 - this.modified = src.modified;
1.18 originalList = false;
1.19 }
1.20
1.21 @@ -85,7 +85,9 @@
1.22 }
1.23
1.24 public EloList putResult(String winner, String looser, long modified){
1.25 - this.modified = modified;
1.26 + this.lastGame = modified;
1.27 + if(this.firstGame == 0)
1.28 + this.firstGame = modified;
1.29 double wElo = getElo(winner);
1.30 double lElo = getElo(looser);
1.31