public class Evaluator extends Object
Constructor and Description |
---|
Evaluator(DetroidParameters params,
Cache<ETEntry> evalTable)
Initializes a chess position evaluator.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isMaterialInsufficient(Position pos)
Returns whether the position is a case of insufficient material.
|
static short |
MVVLVA(Move move)
Returns the MVV/LVA score of the specified move.
|
short |
score(Position pos,
byte hashGen,
ETEntry entry)
A static evaluation of the chess position from the color to move's point of view.
|
short |
score(Position pos,
byte hashGen,
ETEntry entry,
Map<String,Double> gradientCache)
A static evaluation of the chess position from the color to move's point of view.
|
short |
SEE(Position pos,
Move move)
A static exchange evaluation algorithm for determining a close approximation of a capture's value.
|
public static boolean isMaterialInsufficient(Position pos)
pos
- The position to test.public static short MVVLVA(Move move)
move
- The move to score.public short SEE(Position pos, Move move)
pos
- The position in which the move is to be evaluated.move
- The move to score.public short score(Position pos, byte hashGen, ETEntry entry, Map<String,Double> gradientCache)
pos
- The position to score.hashGen
- The hash generation.entry
- The pre-constructed evaluation table entry.gradientCache
- An optional map for storing the gradient of the evaluation function w.r.t. the parameters used.public short score(Position pos, byte hashGen, ETEntry entry)
pos
- The position to score.hashGen
- The hash generation.entry
- The pre-constructed evaluation table entry.Copyright © 2020. All rights reserved.