Examples of wildcardSize()


Examples of com.jcloisterzone.board.EdgePattern.wildcardSize()

        return -points/enemyPlayers;
    }

    protected double chanceToPlaceTile(Game game, Position pos) {
        EdgePattern pattern = game.getBoard().getAvailMoveEdgePattern(pos);
        if (pattern != null && pattern.wildcardSize() < 2) {
            int remains = game.getTilePack().getSizeForEdgePattern(pattern);
            if (remains == 0) return 0.0;
            if (remains < game.getAllPlayers().length) {
                if (remains == 0) return 0.0;
                return 1.0 - Math.pow(1.0 - 1.0 / (game.getAllPlayers().length), remains);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.