Package com.svanloon.game.wizard.computer

Examples of com.svanloon.game.wizard.computer.ComputerPlayer


      Server server = new Server(hps, go, numberOfPlayers);
      server.setNumberOfPlayers(go.getTotalHumanPlayers());
      List<String> names = createListOfRandomNames();
      int counter = 0;
      for(String name : names) {
        server.addBot(new ComputerPlayer(name));
        counter++;
        if(counter == 6) {
          break;
        }
      }
View Full Code Here


   
    int numberOfGames = 1000;
    for(int i = 0; i < numberOfGames; i++) {
      Server server = new Server(null, go, numberOfPlayers);
      server.setNumberOfPlayers(go.getTotalHumanPlayers());
      server.addBot(new ComputerPlayer("Computer 1"));
      server.addBot(new ComputerPlayer("Computer 2"));
      server.addBot(new ComputerPlayer("Computer 3"));
      server.addBot(new ComputerPlayer("Computer 4"));
      server.addBot(new ComputerPlayer("Computer 5"));
      server.addBot(new ComputerPlayer("Computer 6"));
      server.run();
    }

    System.out.println(GameArchive.getInstance().summarize());
  }
View Full Code Here

TOP

Related Classes of com.svanloon.game.wizard.computer.ComputerPlayer

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.