Package org.ggp.base.util.game

Examples of org.ggp.base.util.game.CloudGameRepository


  /**
   * @param args
   */
  public static void main(String[] args) throws Exception {
    GameRepository gameRepo = new CloudGameRepository("http://games.ggp.org/stanford/");

    for (String gameKey : gameRepo.getGameKeys()) {
      if (!gameKey.equals("amazons") //Skip games that currently result in out-of-memory errors
          && !gameKey.equals("alexChess")) {
        try {
          new BasesInputsValidator(20000).checkValidity(gameRepo.getGame(gameKey));
          System.out.println("Game " + gameKey + " has valid base/input propositions.");
        } catch (ValidatorException ve) {
          System.out.println("Game " + gameKey + " is invalid: " + ve.getMessage());
        }
      }
View Full Code Here


                theSelectedRepository = theCachedRepositories.get(theRepositoryName);
            } else {
                if (theRepositoryName.equals("Local Game Repository")) {
                    theSelectedRepository = new LocalGameRepository();
                } else {
                    theSelectedRepository = new CloudGameRepository(theRepositoryName);
                }
                theCachedRepositories.put(theRepositoryName, theSelectedRepository);
            }
            repopulateGameList();
        }
View Full Code Here

*/
public final class BatchValidator
{
  public static void main(String[] args)
  {
    GameRepository repo = new CloudGameRepository("games.ggp.org/base");
    for (String gameKey : repo.getGameKeys()) {
      if (gameKey.contains("amazons") || gameKey.contains("knightazons") || gameKey.contains("factoringImpossibleTurtleBrain") || gameKey.contains("quad") || gameKey.contains("blokbox") || gameKey.contains("othello"))
        continue;
      Game game = repo.getGame(gameKey);
      GameValidator[] theValidators = new GameValidator[] {
          new StaticValidator(),
          new BasesInputsValidator(3000),
          new SimulationValidator(300, 10),
          new OPNFValidator(),
View Full Code Here

        }

        // This is where we get the rulesheets from. Each game has a corresponding
        // game (with rulesheet) stored on this repository server. Changing this is
        // likely to break things unless you know what you're doing.
        theRepository = new CloudGameRepository("http://games.ggp.org/base/");
    }
View Full Code Here

TOP

Related Classes of org.ggp.base.util.game.CloudGameRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.