Cleaning up
This commit is contained in:
@@ -34,9 +34,6 @@ public class EffectUtils {
|
||||
|
||||
for (JSONObject effect : effectArray) {
|
||||
final EffectAppender effectAppender = effectAppenderFactory.getEffectAppender(effect, environment);
|
||||
if (effectAppender == null) {
|
||||
System.out.println("");
|
||||
}
|
||||
if (effectAppender.isPlayabilityCheckedForEffect())
|
||||
actionSource.addPlayRequirement(
|
||||
(actionContext) -> effectAppender.isPlayableInFull(actionContext));
|
||||
|
||||
@@ -178,8 +178,4 @@ public class DbTournamentDAO implements TournamentDAO {
|
||||
throw new RuntimeException(exp);
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws ParseException {
|
||||
System.out.println(DateUtils.parseDateWithHour("2013-01-05 17:30:00").getTime());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,20 +40,4 @@ public class NumberUtils {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
int count = 3;
|
||||
int maxNumber = 5;
|
||||
|
||||
int iteration = 0;
|
||||
while (true) {
|
||||
int[] result = selectOrderedCombinationOfNumbers(count, maxNumber, iteration);
|
||||
if (result == null) {
|
||||
System.out.println("Combinations: "+iteration);
|
||||
break;
|
||||
}
|
||||
System.out.println(Arrays.toString(result));
|
||||
iteration++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,10 +201,4 @@ public class SwissPairingMechanism implements PairingMechanism {
|
||||
private static int getRoundCountBasedOnNumberOfPlayers(int numberOfPlayers) {
|
||||
return (int) (Math.ceil(Math.log(numberOfPlayers) / Math.log(2)));
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(getRoundCountBasedOnNumberOfPlayers(11));
|
||||
System.out.println(getRoundCountBasedOnNumberOfPlayers(9));
|
||||
System.out.println(getRoundCountBasedOnNumberOfPlayers(8));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1356,8 +1356,6 @@ public class IndividualCardAtTest extends AbstractAtTest {
|
||||
|
||||
assertEquals(Zone.DISCARD, morgulBlade.getZone());
|
||||
assertEquals(Zone.ATTACHED, bladeTip.getZone());
|
||||
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -1407,8 +1405,6 @@ public class IndividualCardAtTest extends AbstractAtTest {
|
||||
|
||||
assertEquals(Zone.DISCARD, morgulBlade.getZone());
|
||||
assertEquals(Zone.ATTACHED, bladeTip.getZone());
|
||||
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user