| 1 |
/* dualCheckmateSearcher.cc |
| 2 |
*/ |
| 3 |
#include "dualCheckmateSearcher.h" |
| 4 |
#include "dualCheckmateSearcher.tcc" |
| 5 |
#include "dominanceTable.h" |
| 6 |
#include "osl/state/numEffectState.h" |
| 7 |
|
| 8 |
namespace osl |
| 9 |
{ |
| 10 |
namespace checkmate |
| 11 |
{ |
| 12 |
// explicit template instantiation |
| 13 |
template class DualCheckmateSearcher<DominanceTable,LibertyEstimator,PieceCost2>; |
| 14 |
|
| 15 |
template bool DualCheckmateSearcher<DominanceTable,LibertyEstimator,PieceCost2> |
| 16 |
::isWinningStateByOracle<BLACK> |
| 17 |
(NumEffectState&, const HashKey&, const PathEncoding&, Move&, |
| 18 |
unsigned short&, int); |
| 19 |
template bool DualCheckmateSearcher<DominanceTable,LibertyEstimator,PieceCost2> |
| 20 |
::isWinningStateByOracle<WHITE> |
| 21 |
(NumEffectState&, const HashKey&, const PathEncoding&, Move&, |
| 22 |
unsigned short&, int); |
| 23 |
|
| 24 |
template bool DualCheckmateSearcher<DominanceTable,LibertyEstimator,PieceCost2> |
| 25 |
::isWinningStateByOracleLastMove<BLACK> |
| 26 |
(NumEffectState&, const HashKey&, const PathEncoding&, Move&, Move, |
| 27 |
unsigned short&, int); |
| 28 |
template bool DualCheckmateSearcher<DominanceTable,LibertyEstimator,PieceCost2> |
| 29 |
::isWinningStateByOracleLastMove<WHITE> |
| 30 |
(NumEffectState&, const HashKey&, const PathEncoding&, Move&, Move, |
| 31 |
unsigned short&, int); |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
osl::checkmate:: |
| 36 |
SharedOracles::SharedOracles(Player attacker) |
| 37 |
: oracles(attacker), oracles_last_move(attacker), |
| 38 |
oracles_after_attack(attacker) |
| 39 |
{ |
| 40 |
} |
| 41 |
|
| 42 |
void osl::checkmate:: |
| 43 |
SharedOracles::showStatus() const |
| 44 |
{ |
| 45 |
std::cerr << oracles.keySize() << ":" |
| 46 |
<< oracles.totalSize() << " " |
| 47 |
<< oracles_after_attack.keySize() << ":" |
| 48 |
<< oracles_after_attack.totalSize(); |
| 49 |
} |
| 50 |
|
| 51 |
|
| 52 |
/* ------------------------------------------------------------------------- */ |
| 53 |
// ;;; Local Variables: |
| 54 |
// ;;; mode:c++ |
| 55 |
// ;;; c-basic-offset:2 |
| 56 |
// ;;; End: |