Package com.jcloisterzone.board

Examples of com.jcloisterzone.board.EdgePattern


        if (isMe(p)) return points;
        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

Related Classes of com.jcloisterzone.board.EdgePattern

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.