@Component @Qualifier(value="gnuchess") public class GnuChessEngineImpl extends Object implements ChessEngineAnalyticalController
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
ANALYSIS_RESULT_PATTERN |
static Pattern |
MYMOVE_PATTERN |
| Constructor and Description |
|---|
GnuChessEngineImpl() |
| Modifier and Type | Method and Description |
|---|---|
EngineAnalysisReport |
analyze(Collection<String> moves) |
String |
computeNextMove(int depth,
int random,
Collection<String> game) |
void |
validateCompatibility() |
public static final Pattern MYMOVE_PATTERN
public static final Pattern ANALYSIS_RESULT_PATTERN
@PostConstruct public void validateCompatibility() throws IOException
IOExceptionpublic String computeNextMove(int depth, int random, Collection<String> game) throws ChessEngineFailureException
computeNextMove in interface ChessEngineControllerChessEngineFailureExceptionpublic EngineAnalysisReport analyze(Collection<String> moves) throws ChessEngineFailureException
analyze in interface ChessEngineAnalyticalControllerChessEngineFailureExceptionCopyright © 2016. All Rights Reserved.