Phase10/src/com/github/s7uxn37/phase10/Intelligence.java
/**
     * Initializes the Intelligence and sets up all variables
     * @param numPlayers The number of total players in the game [2 - 6]
     * @param playerCards The player's cards
     */
Initializes the Intelligence and sets up all variables
@param numPlayers The number of total players in the game [2 - 6]
@param playerCards The player's cards
Initializes the Intelligence and sets up all variables @param numPlayers The number of total players in the game [ 2 - 6 ] @param playerCards The player ' s cards
final void init(int numPlayers, Card[] playerCards) {
	    this.numOpponents = numPlayers - 1;
		this.faceDown = Card.getListUnknown(96 - 10*numOpponents - playerCards.length - 5);
		this.faceUp = Card.getListUnknown(5);
        this.opponents = (ArrayList<Card>[]) new ArrayList[numOpponents];
		for (int i = 0; i < numOpponents; i++) {
			this.opponents[i] = Card.getListUnknown(10);
		}
		this.player = new ArrayList<>();
        Collections.addAll(player, playerCards);
        this.partialTargets = new ArrayList<>();
        this.completedTargets = new ArrayList<>();
        this.fieldInfo = new HashMap<>();
        for (FIELD_TYPE t : FIELD_TYPE.values())
            this.fieldInfo.put(t, "not calculated!");
		log(
				"playerNumber set\n" +
				"card pool initialized\n" +
				"hands initialized\n" +
                "player's hand set"
		);
	}
final void init ( int numPlayers , Card [ ] playerCards ) { this . numOpponents = numPlayers - 1 ; this . faceDown = Card . getListUnknown ( 96 - 10 * numOpponents - playerCards . length - 5 ) ; this . faceUp = Card . getListUnknown ( 5 ) ; this . opponents = ( ArrayList < Card > [ ] ) new ArrayList [ numOpponents ] ; for ( int i = 0 ; i < numOpponents ; i ++ ) { this . opponents [ i ] = Card . getListUnknown ( 10 ) ; } this . player = new ArrayList < > ( ) ; Collections . addAll ( player , playerCards ) ; this . partialTargets = new ArrayList < > ( ) ; this . completedTargets = new ArrayList < > ( ) ; this . fieldInfo = new HashMap < > ( ) ; for ( FIELD_TYPE t : FIELD_TYPE . values ( ) ) this . fieldInfo . put ( t , "not calculated!" ) ; log ( "playerNumber set\n" + "card pool initialized\n" + "hands initialized\n" + "player's hand set" ) ; }
Initializes the Intelligence and sets up all variables
 @param numPlayers The number of total players in the game [2 - 6]
 @param playerCards The player's cards
Initializes the Intelligence and sets up all variables @param numPlayers The number of total players in the game [ 2 - 6 ] @param playerCards The player ' s cards
//noinspection unchecked
