fixed getScore

This commit is contained in:
Quentin Legot 2021-02-28 20:41:01 +01:00
parent c4c4a7ac76
commit 1c12974d79

View File

@ -72,8 +72,8 @@ public class State {
return moves; return moves;
} }
public int getScore(Player player) { public float getScore(Player player) {
return player == player1 ? (n1/(n1+n2)) : (n2/(n1+n2)); return player == player1 ? ((float) n1/(n1+n2)) : ((float) n2/(n1+n2));
} }
public int getN1() { public int getN1() {