public class Strategy
extends java.lang.Object
| Constructor and Description |
|---|
Strategy(AbstractField f) |
| Modifier and Type | Method and Description |
|---|---|
double |
alphaBetaPruning(int maxDepth,
boolean first,
double alpha,
double beta)
It sets the instance variable bestPosition, containing the best move
Note: The evaluation is only stored, when the situation is completely evaluated.
|
void |
makeMove(int timeLimit)
The time limit is exceeded.
|
public Strategy(AbstractField f)
public void makeMove(int timeLimit)
timeLimit - public double alphaBetaPruning(int maxDepth,
boolean first,
double alpha,
double beta)