Package squaresgame

Examples of squaresgame.HumanPlayer


  }
 
  public static ArrayList<Player> generatePlayers(int numHumanPlayers, int numAIPlayers){
    ArrayList<Player> players = new ArrayList<Player>();
    for(int i =0; i < numHumanPlayers; i++){
      players.add(new HumanPlayer(i, String.valueOf(i+1)));
    }
    for(int i=0;i < numAIPlayers; i++){
      players.add(new ComputerPlayer(i+numHumanPlayers, String.valueOf(i+numHumanPlayers+1)));
    }
    return players;
View Full Code Here

TOP

Related Classes of squaresgame.HumanPlayer

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.