public class SearchResults extends Object
Constructor and Description |
---|
SearchResults(String bestMove,
String suggestedPonderMove,
Short score,
ScoreType scoreType)
Constructs an instance according to the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getBestMove()
Returns a Pure Algebraic Coordinate Notation representation of the best move.
|
Optional<Short> |
getScore()
Returns an optional 16-bit integer that may hold the score of the search results in centipawns, or if it is a mate score, the mate
distance.
|
Optional<ScoreType> |
getScoreType()
Returns the type of the score if there is a score present.
|
Optional<String> |
getSuggestedPonderMove()
Returns an optional Pure Algebraic Coordinate Notation representation of the suggested ponder move.
|
public SearchResults(String bestMove, String suggestedPonderMove, Short score, ScoreType scoreType)
bestMove
- The best move in PACN.suggestedPonderMove
- The expected reply to the best move in PACN. It is optional and thus can be null.score
- An optional search score value in centipawns. If the move was found using other methods than classic search and there is
no score associated with it, the score should be null.scoreType
- An optional search score type. If the score is not present, the score type is ignored. If the score is present, the
score type cannot be null either.public String getBestMove()
public Optional<String> getSuggestedPonderMove()
public Optional<Short> getScore()
Copyright © 2020. All rights reserved.