|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.game.AbstractEvaluator
org.vizzini.game.boardgame.chess.DefaultChessEvaluator
public class DefaultChessEvaluator
Provides a default evaluator for 3D chess. This evaluator uses a fixed value for each token type.
Constructor Summary | |
---|---|
DefaultChessEvaluator()
|
Method Summary | |
---|---|
void |
configure(Properties properties,
int index)
Configure this evaluator. |
protected int |
evaluateTokens(IEnvironment environment,
IAgent agent)
Evaluate the tokens in the given environment from the perspective of the given agent. |
protected int |
getValue(IChessToken token)
Return the value for the given token. |
int[] |
getValues()
Return the token values. |
protected void |
setValues(int[] values)
Set the token values. |
Methods inherited from class org.vizzini.game.AbstractEvaluator |
---|
evaluate, multiplier |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultChessEvaluator()
Method Detail |
---|
public void configure(Properties properties, int index)
configure
in interface IEvaluator
configure
in class AbstractEvaluator
properties
- Properties.index
- Agent index.public int[] getValues()
protected int evaluateTokens(IEnvironment environment, IAgent agent)
evaluateTokens
in class AbstractEvaluator
environment
- The environment to evaluate.agent
- The agent of interest.protected int getValue(IChessToken token)
protected void setValues(int[] values)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |