|
Algorithm Development Kit 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectalgs.model.gametree.MinimaxEvaluation
public class MinimaxEvaluation
Perform a MiniMax evaluation over a game state to the fixed ply depth.
| Field Summary | |
|---|---|
int |
numStates
|
| Constructor Summary | |
|---|---|
MinimaxEvaluation(int ply)
Create an evaluator with the given state. |
|
| Method Summary | |
|---|---|
IGameMove |
bestMove(IGameState s,
IPlayer player,
IPlayer opponent)
Initiates the MiniMax computations by using its ply to determine the maximum number of moves in advance to look. |
java.lang.String |
toString()
Expose game state as string (useful for debugging purposes). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int numStates
| Constructor Detail |
|---|
public MinimaxEvaluation(int ply)
bestMove is invoked.
ply - Depth to search.| Method Detail |
|---|
public IGameMove bestMove(IGameState s,
IPlayer player,
IPlayer opponent)
If no moves are available to player, then null is returned.
bestMove in interface IEvaluations - Initial game stateplayer - The player making the next moveopponent - The player's opponentpublic java.lang.String toString()
toString in class java.lang.Object
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||