Class QMinDist

java.lang.Object
ubc.team09.eval.QMinDist
All Implemented Interfaces:
HeuristicMethod

public class QMinDist extends Object implements HeuristicMethod
This evaluation is identical to KMinDist, except that this one claims territory for each color if they would need fewer Queen moves to reach it. This is the approach used by Martin Müller and Theodore Tegos' Arrow program.
See Also
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    evaluate(State state)
    Returns a number in the range of (-∞, +∞) where lower values indicate a more favorable position for Black, and greater values indicate a more favorable position for White.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QMinDist

      public QMinDist()
  • Method Details

    • evaluate

      public double evaluate(State state)
      Description copied from interface: HeuristicMethod
      Returns a number in the range of (-∞, +∞) where lower values indicate a more favorable position for Black, and greater values indicate a more favorable position for White.
      Specified by:
      evaluate in interface HeuristicMethod
      Parameters:
      state - The board state to evaluate.