Ejemplo n.º 1
0
  public int pickCountry() {
    // our first choice is the continent with the least # of borders that is totally empty
    if (goalCont == -1 || !BoardHelper.playerOwnsContinentCountry(-1, goalCont, countries)) {
      setGoalToLeastBordersCont();
    }

    // so now we have picked a cont...
    return pickCountryInContinent(goalCont);
  }