immediateCheckmate.cc
Go to the documentation of this file.
/* immediateCheckmate.cc
*/
#include "osl/checkmate/immediateCheckmate.tcc"
namespace osl
{
namespace checkmate
{
template
bool ImmediateCheckmate::
hasCheckmateMove<BLACK>(NumEffectState const&, King8Info, Square, Move&);
template
bool osl::checkmate::ImmediateCheckmate::
hasCheckmateMove<WHITE>(NumEffectState const&, King8Info, Square, Move&);
template
bool ImmediateCheckmate::
hasCheckmateMove<BLACK>(NumEffectState const&, Move&);
template
bool osl::checkmate::ImmediateCheckmate::
hasCheckmateMove<WHITE>(NumEffectState const&, Move&);
template
bool ImmediateCheckmate::
hasCheckmateMove<BLACK>(NumEffectState const&);
template
bool osl::checkmate::ImmediateCheckmate::
hasCheckmateMove<WHITE>(NumEffectState const&);
}
}
bool osl::checkmate::ImmediateCheckmate::
hasCheckmateMove(Player pl,NumEffectState const& state)
{
if(pl==BLACK)
return hasCheckmateMove<BLACK>(state);
else
return hasCheckmateMove<WHITE>(state);
}
bool osl::checkmate::ImmediateCheckmate::
hasCheckmateMove(Player pl,NumEffectState const& state,Move& bestMove)
{
if(pl==BLACK)
return hasCheckmateMove<BLACK>(state,bestMove);
else
return hasCheckmateMove<WHITE>(state,bestMove);
}
/* ------------------------------------------------------------------------- */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::Move
圧縮していない moveの表現 .
Definition basic_type.h:1052
osl::NumEffectState
利きを持つ局面
Definition numEffectState.h:34
osl::checkmate::ImmediateCheckmate::hasCheckmateMove
static bool hasCheckmateMove(NumEffectState const &state, Square target, King8Info mask, Move &bestMove)
osl::checkmate::King8Info
敵玉の8近傍の状態を表す.
Definition king8Info.h:29
immediateCheckmate.tcc
osl::checkmate
Definition king8Info.h:12
osl
Definition additionalEffect.h:6
osl::Player
Player
Definition basic_type.h:8
osl::BLACK
@ BLACK
Definition basic_type.h:9