MCPcopy Create free account
hub / github.com/dhbloo/rapfi / queryDatabaseOne

Function queryDatabaseOne

Rapfi/command/gomocup.cpp:833–849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833void queryDatabaseOne(bool getPosition)
834{
835 using namespace ::Database;
836 if (getPosition)
837 getDatabasePosition();
838
839 if (Search::Threads.dbStorage()) {
840 DBClient dbClient(*Search::Threads.dbStorage(), RECORD_MASK_ALL);
841 DBRecord record;
842 if (dbClient.query(*board, options.rule, record))
843 MESSAGEL("DATABASE ONE " << int(record.label) << ' ' << record.value << ' '
844 << record.depth() << ' ' << int(record.bound()) << ' '
845 << record.displayLabel());
846 else
847 MESSAGEL("DATABASE ONE 0 0 0 0");
848 }
849}
850
851void queryDatabaseText(bool getPosition)
852{

Callers 2

editDatabaseTVDFunction · 0.85
runProtocolFunction · 0.85

Calls 6

getDatabasePositionFunction · 0.85
dbStorageMethod · 0.80
queryMethod · 0.80
depthMethod · 0.80
boundMethod · 0.80
displayLabelMethod · 0.80

Tested by

no test coverage detected