Modifier and Type | Field and Description |
---|---|
static String |
BEST_MOVE_OP_CODE |
Constructor and Description |
---|
SearchTestSuite(String name,
String testSuiteFilePath)
Parses the EPD records in the specified file and holds them in a list.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the test suite.
|
List<EPDRecord> |
getRecords()
Returns the EPDRecord records held in the test suite.
|
static boolean |
searchTest(UCIEngine engine,
ControllerEngine controllerEngine,
EPDRecord record,
long timePerPos)
Searches the position defined in the EPDRecord record for the specified amount of time using the provided engine and returns if the
engine found any one of the best moves noted in the record.
|
public static final String BEST_MOVE_OP_CODE
public SearchTestSuite(String name, String testSuiteFilePath) throws IOException
name
- The name of the test suite.testSuiteFilePath
- The path to the file holding the EPDRecord records.IOException
- If the file does not exist or cannot be read.public String getName()
public List<EPDRecord> getRecords()
public static boolean searchTest(UCIEngine engine, ControllerEngine controllerEngine, EPDRecord record, long timePerPos) throws Exception
engine
- The engine to test.controllerEngine
- The controller engine.record
- The EPDRecord record specifying the position and the best move(s).timePerPos
- How long the engine should search the position in milliseconds.Exception
- If the engine initialization fails.Copyright © 2020. All rights reserved.