My Project
Public Types | Public Member Functions | Static Public Member Functions | List of all members
osl::move_probability::BreakThreatmate Class Reference

#include <feature.h>

Inheritance diagram for osl::move_probability::BreakThreatmate:
osl::move_probability::Feature

Public Types

enum  {
  PatternCacheSize = PatternCommon::PatternCacheSize , AddEffectSize = PTYPE_SIZE * PatternCacheSize , OpenRoadSize = PTYPE_SIZE * PatternCacheSize , OpenRoadBase = AddEffectSize ,
  KingMoveSize = PatternCacheSize , KingMoveBase = OpenRoadBase + OpenRoadSize , CaptureSize = PTYPE_SIZE*PTYPE_SIZE , CaptureBase = KingMoveBase + KingMoveSize ,
  AddEffect8Size = PTYPE_SIZE*PatternCacheSize , AddEffect8Base = CaptureBase + CaptureSize , OtherMoveSize = 1 , OtherMoveBase = AddEffect8Base + AddEffect8Size ,
  DIM = OtherMoveBase + OtherMoveSize
}
 

Public Member Functions

 BreakThreatmate ()
 
double match (const StateInfo &info, const MoveInfo &move, int offset, const double *w) const
 
- Public Member Functions inherited from osl::move_probability::Feature
 Feature (std::string n, size_t d)
 
virtual ~Feature ()
 
std::string name () const
 
size_t dimension () const
 

Static Public Member Functions

static bool isKingMove (Move move)
 
static bool isOpeningKingRoad (Move move, Square king)
 
static bool isDefendingThreatmate (Move move, Move threatmate, const NumEffectState &state)
 
static bool isDefendingKing8 (Move move, Square king, const NumEffectState &state)
 
- Static Public Member Functions inherited from osl::move_probability::Feature
static int classifyEffect9 (const NumEffectState &state, Player player, Square to)
 

Detailed Description

Definition at line 1022 of file move_probability/feature.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
PatternCacheSize 
AddEffectSize 
OpenRoadSize 
OpenRoadBase 
KingMoveSize 
KingMoveBase 
CaptureSize 
CaptureBase 
AddEffect8Size 
AddEffect8Base 
OtherMoveSize 
OtherMoveBase 
DIM 

Definition at line 1025 of file move_probability/feature.h.

Constructor & Destructor Documentation

◆ BreakThreatmate()

osl::move_probability::BreakThreatmate::BreakThreatmate ( )
inline

Definition at line 1035 of file move_probability/feature.h.

Member Function Documentation

◆ isDefendingKing8()

static bool osl::move_probability::BreakThreatmate::isDefendingKing8 ( Move  move,
Square  king,
const NumEffectState state 
)
inlinestatic

◆ isDefendingThreatmate()

static bool osl::move_probability::BreakThreatmate::isDefendingThreatmate ( Move  move,
Move  threatmate,
const NumEffectState state 
)
inlinestatic

◆ isKingMove()

static bool osl::move_probability::BreakThreatmate::isKingMove ( Move  move)
inlinestatic

Definition at line 1038 of file move_probability/feature.h.

References osl::KING, and osl::Move::ptype().

Referenced by match().

◆ isOpeningKingRoad()

static bool osl::move_probability::BreakThreatmate::isOpeningKingRoad ( Move  move,
Square  king 
)
inlinestatic

Definition at line 1042 of file move_probability/feature.h.

References osl::Move::from(), osl::Move::isDrop(), and osl::Square::isNeighboring8().

Referenced by match().

◆ match()

double osl::move_probability::BreakThreatmate::match ( const StateInfo info,
const MoveInfo move,
int  offset,
const double *  w 
) const
inlinevirtual

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