Class ChooseMovePlan


  • public class ChooseMovePlan
    extends Plan
    Meta-level reasoning plan for choosing between applicable plans.
    • Constructor Detail

      • ChooseMovePlan

        public ChooseMovePlan()
    • Method Detail

      • body

        public void body()
        The plan body.
        Specified by:
        body in class Plan
      • selectPlan

        protected ICandidateInfo selectPlan​(ICandidateInfo[] apps,
                                            IBoard board,
                                            boolean same,
                                            boolean jump,
                                            boolean consider_color,
                                            boolean consider_jump)
        Select a move with respect to color resp. move kind (jump vs. normal).
        Parameters:
        apps - The list of applicables.
        board - The board.
        same - Prefer moves of same color.
        jump - Prefer jump moves.
        consider_color - Consider the color.
        consider_jump - Consider the move kind.
      • matchColor

        protected boolean matchColor​(IBoard board,
                                     Move move,
                                     boolean prefer_samecolor)
        Match move with color constraint.
      • matchJump

        protected boolean matchJump​(IBoard board,
                                    Move move,
                                    boolean prefer_jump)
        Match move with jump constraint.