public class UCIService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_TIME
The default time per move for a search
|
Constructor and Description |
---|
UCIService(Board start,
Game game,
Engine engine)
Instantiates a new UCI service for the given game.
|
Modifier and Type | Method and Description |
---|---|
void |
setCache(Cache cache)
Sets the transposition table to use by the service.
|
void |
setContempt(int score)
Sets the contempt factor.
|
void |
setRoots(Roots roots)
Sets the openings book database to use.
|
void |
start()
Asks this service to start receiving commands.
|
public static final long DEFAULT_TIME
public UCIService(Board start, Game game, Engine engine)
start
- Start board positiongame
- A game objectengine
- An engine objectpublic void setContempt(int score)
score
- Score for draw positionsEngine.setInfinity(int)
public void setCache(Cache cache)
cache
- A cache object or null
to disable
the transposition tablepublic void setRoots(Roots roots)
roots
- A roots object or null
to disable
the use of an opening bookpublic void start()