protected double getUnfinishedCloisterPoints(Cloister cloister, LegacyAiScoreContext ctx) { List<Meeple> followers = cloister.getMeeples(); if (!followers.isEmpty() && isMe(followers.get(0).getPlayer())) { openCount[OPEN_COUNT_CLOITSTER]++; } double chanceToClose = ctx.getChanceToClose(); int points = ctx.getPoints(); return points + (9 - points) * chanceToClose; }
/** * Method filter out abbots. They are not used for common scoring. * * @return */ @Override public List<Follower> getFollowers() { List<Follower> follwers = new ArrayList<>(); for (Meeple m : cloister.getMeeples()) { if (m.getLocation() != Location.ABBOT) { follwers.add((Follower) m); } } return follwers; }