osl::move_probability::LureDefender Class Reference

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | List of all members
osl::move_probability::LureDefender Class Reference

`#include <feature.h>`

Inheritance diagram for osl::move_probability::LureDefender:
[legend]
Collaboration diagram for osl::move_probability::LureDefender:
[legend]

## Public Types
enum | { ATTACK_DIM = PTYPE_SIZE*PTYPE_SIZE*PTYPE_SIZE, DIM = ATTACK_DIM*3 }

## Public Member Functions
| LureDefender ()
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 double | match (const NumEffectState &state, Move move, int see, const StateInfo::pinned_gs_t &pinned_list, int offset, const double *w)
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 1163 of file move_probability/feature.h.

## Member Enumeration Documentation

anonymous enum

Enumerator
ATTACK_DIM |
DIM |

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

## Constructor & Destructor Documentation

osl::move_probability::LureDefender::LureDefender | ( | ) |  |
| inline

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

## Member Function Documentation

static double osl::move_probability::LureDefender::match | ( | const NumEffectState & | state,
|  | Move | move,
|  | int | see,
|  | const StateInfo::pinned_gs_t & | pinned_list,
|  | int | offset,
|  | const double * | w
| ) |  |
| inlinestatic

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

References osl::alt(), osl::move_probability::PinnedGeneral::attack, osl::Board_Table, osl::canPromote(), osl::Square::canPromote(), osl::move_probability::PinnedGeneral::covered, osl::move_probability::PinnedGeneral::general, osl::BoardTable::getOffset(), osl::Neighboring8::isNeighboring8(), osl::KING, osl::Piece::owner(), osl::Move::player(), osl::promote(), osl::Piece::ptype(), osl::Move::ptype(), osl::PTYPE_EDGE, osl::PTYPE_SIZE, osl::Move::ptypeO(), osl::Piece::square(), osl::Move::to(), and osl::U.

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

Implements osl::move_probability::Feature.

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

References osl::alt(), osl::move_probability::StateInfo::exchange_pins, osl::move_probability::ToEffectLong::match(), osl::move_probability::MoveInfo::move, osl::move_probability::MoveInfo::player, osl::move_probability::MoveInfo::see, and osl::move_probability::StateInfo::state.

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

- move_probability/feature.h