Static Public メソッド | Static Private メソッド

クラス osl::checkmate::ImmediateCheckmate

#include <immediateCheckmate.h>

すべてのメンバ一覧

Static Public メソッド

template<Player P, bool setBestMove>
static bool slowHasCheckmateMoveDirPiece (NumEffectState const &state, Square target, King8Info mask, Direction d, Square pos, Piece p, Ptype ptype, Move &bestMove)
template<Player P, bool setBestMove>
static bool hasCheckmateMoveDirPiece (NumEffectState const &state, Square target, King8Info mask, Direction d, Square pos, Piece p, Move &bestMove)
template<Player P, bool setBestMove>
static bool hasCheckmateMoveDir (NumEffectState const &state, Square target, King8Info mask, Direction d, Move &bestMove)
template<Player P, bool setBestMove>
static bool hasCheckmateMove (NumEffectState const &state, Square target, King8Info mask, Move &bestMove)
template<Player P>
static bool hasCheckmateMove (NumEffectState const &state)
 一手詰めがある局面かどうか判定(move).
template<Player P>
static bool hasCheckmateMove (NumEffectState const &state, King8Info)
template<Player P>
static bool hasCheckmateMove (NumEffectState const &state, Move &bestMove)
 一手詰めがある局面かどうか判定(move).
template<Player P>
static bool hasCheckmateMove (NumEffectState const &state, King8Info canMoveMask, Square king, Move &bestMove)
static bool hasCheckmateMove (Player pl, NumEffectState const &state)
static bool hasCheckmateMove (Player pl, NumEffectState const &state, Move &bestMove)

Static Private メソッド

template<Player P, bool setBestMove>
static bool hasCheckmateDrop (NumEffectState const &state, Square target, King8Info mask, Move &bestMove)

説明

immediateCheckmate.h11 行で定義されています。


関数

template<osl::Player P, bool setBestMove>
bool osl::checkmate::ImmediateCheckmate::hasCheckmateDrop ( NumEffectState const &  state,
Square  target,
King8Info  mask,
Move bestMove 
) [static, private]
bool osl::checkmate::ImmediateCheckmate::hasCheckmateMove ( Player  pl,
NumEffectState const &  state,
Move bestMove 
) [static]

immediateCheckmate.cc43 行で定義されています。

参照先 osl::BLACK.

template<osl::Player P, bool setBestMove>
bool osl::checkmate::ImmediateCheckmate::hasCheckmateMove ( NumEffectState const &  state,
Square  target,
King8Info  mask,
Move bestMove 
) [static]
template<osl::Player P>
bool osl::checkmate::ImmediateCheckmate::hasCheckmateMove ( NumEffectState const &  state,
Move bestMove 
) [static]

一手詰めがある局面かどうか判定(move).

手番の側に王手がかかっている場合は除く 長い利きによる王手は生成しない. pinされている駒の利きがないために詰みになる例も扱わない.

引数:
P(template) - 攻撃側(手番側)のプレイヤー
state - 局面
best_move - ある場合に詰めの手を返す

immediateCheckmate.tcc437 行で定義されています。

参照先 osl::alt(), osl::NumEffectState::Iking8Info(), と osl::SimpleState::kingSquare().

template<osl::Player P>
bool osl::checkmate::ImmediateCheckmate::hasCheckmateMove ( NumEffectState const &  state,
King8Info  canMoveMask,
Square  king,
Move bestMove 
) [static]

immediateCheckmate.tcc424 行で定義されています。

参照先 osl::NumEffectState::inCheck(), と osl::Square::isOnBoard().

template<osl::Player P>
bool osl::checkmate::ImmediateCheckmate::hasCheckmateMove ( NumEffectState const &  state,
King8Info  canMoveMask 
) [static]

immediateCheckmate.tcc397 行で定義されています。

参照先 osl::alt(), osl::Square::isOnBoard(), と osl::SimpleState::kingSquare().

bool osl::checkmate::ImmediateCheckmate::hasCheckmateMove ( Player  pl,
NumEffectState const &  state 
) [static]

immediateCheckmate.cc34 行で定義されています。

参照先 osl::BLACK.

template<osl::Player P>
bool osl::checkmate::ImmediateCheckmate::hasCheckmateMove ( NumEffectState const &  state  )  [static]

一手詰めがある局面かどうか判定(move).

手番の側に王手がかかっている場合は除く 長い利きによる王手は生成しない. pinされている駒の利きがないために詰みになる例も扱わない.

引数:
P(template) - 攻撃側(手番側)のプレイヤー
state - 局面

immediateCheckmate.tcc411 行で定義されています。

参照先 osl::alt(), osl::NumEffectState::Iking8Info(), osl::Square::isOnBoard(), と osl::SimpleState::kingSquare().

template<osl::Player P, bool setBestMove>
bool osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDir ( NumEffectState const &  state,
Square  target,
King8Info  mask,
Direction  d,
Move bestMove 
) [static]
template<osl::Player P, bool setBestMove>
bool osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDirPiece ( NumEffectState const &  state,
Square  target,
King8Info  mask,
Direction  d,
Square  pos,
Piece  p,
Move bestMove 
) [static]
template<osl::Player P, bool setBestMove>
bool osl::checkmate::ImmediateCheckmate::slowHasCheckmateMoveDirPiece ( NumEffectState const &  state,
Square  target,
King8Info  mask,
Direction  d,
Square  pos,
Piece  p,
Ptype  ptype,
Move bestMove 
) [static]

このクラスの説明は次のファイルから生成されました:
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義