osl::move_probability::CoverFork 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::CoverFork Class Reference

`#include <feature.h>`

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

## Public Types
enum | { DIM = PTYPE_SIZE * PTYPE_SIZE * PTYPE_SIZE }

## Public Member Functions
| CoverFork ()
double | match (const StateInfo &si, const MoveInfo &mi, 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 | defending (const NumEffectState &state, Move move, Square target)
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 1534 of file move_probability/feature.h.

## Member Enumeration Documentation

anonymous enum

Enumerator
DIM |

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

## Constructor & Destructor Documentation

osl::move_probability::CoverFork::CoverFork | ( | ) |  |
| inline

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

## Member Function Documentation

static bool osl::move_probability::CoverFork::defending | ( | const NumEffectState & | state,
|  | Move | move,
|  | Square | target
| ) |  |
| inlinestatic

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

References osl::alt(), osl::Board_Table, osl::BoardTable::getShortOffsetNotKnight(), osl::BoardTable::isBetween(), osl::Move::isDrop(), osl::Move::ptypeO(), osl::Piece::square(), target, osl::Move::to(), and osl::Offset::zero().

double osl::move_probability::CoverFork::match | ( | const StateInfo & | si,
|  | const MoveInfo & | mi,
|  | int | offset,
|  | const double * | w
| ) |  | const
| inlinevirtual

Implements osl::move_probability::Feature.

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

References osl::alt(), osl::move_probability::MoveInfo::move, osl::PAWN, osl::move_probability::MoveInfo::player, osl::Piece::ptype(), osl::Move::ptype(), osl::PTYPE_SIZE, osl::Piece::square(), and osl::move_probability::StateInfo::state.

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

- move_probability/feature.h