All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Static Public Member Functions | List of all members
osl::move_classifier::SafeMove< P > Struct Template Reference

元々,手番の玉に王手がかかっていない状態で自殺手でないことをチェック. More...

#include <safeMove.h>

Static Public Member Functions

static bool isMember (const NumEffectState &state, Ptype ptype, Square from, Square to)
 

Detailed Description

template<Player P>
struct osl::move_classifier::SafeMove< P >

元々,手番の玉に王手がかかっていない状態で自殺手でないことをチェック.

DropMoveの時には呼べない

Definition at line 17 of file safeMove.h.

Member Function Documentation

template<Player P>
static bool osl::move_classifier::SafeMove< P >::isMember ( const NumEffectState &  state,
Ptype  ptype,
Square  from,
Square  to 
)
inlinestatic

元々王手がかかっていないと仮定しているので,自分を 取り除いた上でhasEffectByを呼ばなくても良い

Definition at line 19 of file safeMove.h.

References osl::move_classifier::KingOpenMove< P >::isMember(), osl::Square::isPieceStand(), and osl::KING.

Referenced by is_safe_move(), and osl::ntesuki::NtesukiSimulationSearcher::isSafeMove().


The documentation for this struct was generated from the following file: