public interface Engine
Modifier and Type | Method and Description |
---|---|
void |
abortComputation()
Aborts the current search.
|
int |
computeBestMove(Game game)
Computes a best move for the current position of a game.
|
int |
getContempt()
Returns the current the contempt factor of the engine.
|
int |
getDepth()
Returns the maximum depth allowed for the search
|
int |
getInfinity()
Returns the current infinity score of the engine.
|
long |
getMoveTime()
Returns the maximum time allowed for a move computation
in milliseconds
|
void |
newMatch()
Tells the engine that the next positions are going to be from
a different match.
|
void |
setContempt(int score)
Sets the contempt factor.
|
void |
setDepth(int depth)
Sets the maximum search depth for subsequent computations
|
void |
setInfinity(int score)
Sets the infinity score.
|
void |
setMoveTime(long delay)
Sets the maximum search time allowed for subsequent computations
|
int getDepth()
long getMoveTime()
int getContempt()
int getInfinity()
void setDepth(int depth)
depth
- The new depth valuevoid setMoveTime(long delay)
delay
- The new time value in milliseconds as a
positive number greater than zerovoid setContempt(int score)
score
- Score for draw positionssetInfinity(int)
void setInfinity(int score)
score
- Infinite value as apositive integervoid newMatch()
int computeBestMove(Game game)
game
- The game for which a best move must be computedGame.NULL_MOVE
if the game already endedvoid abortComputation()
computeBestMove(Game)