All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Static Public Member Functions | Static Private Member Functions
osl::checkmate::ImmediateCheckmate Class Reference

#include <immediateCheckmate.h>

List of all members.

Static Public Member Functions

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 Member Functions

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

Detailed Description

Definition at line 13 of file immediateCheckmate.h.


Member Function Documentation

template<osl::Player P, bool setBestMove>
bool osl::checkmate::ImmediateCheckmate::hasCheckmateDrop ( NumEffectState const &  state,
Square  target,
King8Info  mask,
Move bestMove 
) [static, private]
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>
template bool osl::checkmate::ImmediateCheckmate::hasCheckmateMove< WHITE > ( NumEffectState const &  state) [static]

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

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

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

Definition at line 414 of file immediateCheckmate.tcc.

References osl::Square::isOnBoard(), and target.

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

Definition at line 400 of file immediateCheckmate.tcc.

References osl::Square::isOnBoard(), and target.

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

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

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

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

Definition at line 440 of file immediateCheckmate.tcc.

References target.

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

Definition at line 427 of file immediateCheckmate.tcc.

References osl::Square::isOnBoard(), and target.

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

Definition at line 35 of file immediateCheckmate.cc.

References osl::BLACK.

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

Definition at line 44 of file immediateCheckmate.cc.

References osl::BLACK.

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]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines