Class KMinDist
java.lang.Object
ubc.team09.eval.KMinDist
- All Implemented Interfaces:
HeuristicMethod
This evaluation is identical to
QMinDist, except that this one claims
territory for each color if they would need fewer King moves to
reach it, rather than the traditional distance calculation using queen
moves.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KMinDist
public KMinDist()
-
-
Method Details
-
evaluate
Description copied from interface:HeuristicMethodReturns 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:
evaluatein interfaceHeuristicMethod- Parameters:
state- The board state to evaluate.
-