/**
* Tries to test most of the rulesheets in the games directory. This should
* be run when developing a new game to spot errors.
*/
public static void main(String[] args) {
GameRepository testGameRepo = new TestGameRepository();
for(String gameKey : testGameRepo.getGameKeys()) {
if (GAME_KEY_BLACKLIST.contains(gameKey)) {
continue;
}
System.out.println("Testing " + gameKey);
try {
List<ValidatorWarning> warnings = new StaticValidator().checkValidity(testGameRepo.getGame(gameKey));
if (!warnings.isEmpty()) {
System.out.println("Warnings for " + gameKey + ": " + warnings);
}
} catch (ValidatorException e) {
e.printStackTrace();