fixed getScore
This commit is contained in:
parent
c4c4a7ac76
commit
1c12974d79
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user