Lowering the number of rounds for swiss tournament.

This commit is contained in:
marcins78
2013-03-06 10:17:16 +00:00
parent 3806e8911e
commit ae528b8c0d

View File

@@ -181,7 +181,7 @@ public class SwissPairingMechanism implements PairingMechanism {
}
private static int getRoundCountBasedOnNumberOfPlayers(int numberOfPlayers) {
return (int) (Math.ceil(Math.log(numberOfPlayers) / Math.log(2))) + 1;
return (int) (Math.ceil(Math.log(numberOfPlayers) / Math.log(2)));
}
public static void main(String[] args) {