|
Algorithm Development Kit 1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScore
The scoring function returns an int value given a board state.
Method Summary | |
---|---|
int |
eval(INode state)
Evaluate the given state and return an integer that is to be used during search algorithms. |
void |
score(INode state)
Evaluate the given state and update its score using our scoring function. |
Method Detail |
---|
int eval(INode state)
In general, the lower the score, the closer one is to a desired goal state.
state
- The board state to be evaluated. It is unchanged.void score(INode state)
state
- The board state whose score value is to be updated.
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |