All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions
osl::move_probability::BreakThreatmate Class Reference

#include <feature.h>

Inheritance diagram for osl::move_probability::BreakThreatmate:
Inheritance graph
[legend]
Collaboration diagram for osl::move_probability::BreakThreatmate:
Collaboration graph
[legend]

List of all members.

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

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)

Detailed Description

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


Member Enumeration Documentation

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

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


Constructor & Destructor Documentation

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


Member Function Documentation

static bool osl::move_probability::BreakThreatmate::isDefendingKing8 ( Move  move,
Square  king,
const NumEffectState &  state 
) [inline, static]
static bool osl::move_probability::BreakThreatmate::isDefendingThreatmate ( Move  move,
Move  threatmate,
const NumEffectState &  state 
) [inline, static]
static bool osl::move_probability::BreakThreatmate::isKingMove ( Move  move) [inline, static]

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

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

static bool osl::move_probability::BreakThreatmate::isOpeningKingRoad ( Move  move,
Square  king 
) [inline, static]
double osl::move_probability::BreakThreatmate::match ( const StateInfo info,
const MoveInfo move,
int  offset,
const double *  w 
) const [inline, virtual]

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