osl::move_probability::KingRelativeX 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 | List of all members
osl::move_probability::KingRelativeX Class Reference

`#include <feature.h>`

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

## Public Types
enum | { ONE_DIM = 9*PTYPE_SIZE*16 }

## Public Member Functions
| KingRelativeX ()
double | match (const StateInfo &state, const MoveInfo &info, 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

## Additional Inherited Members
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 285 of file move_probability/feature.h.

## Member Enumeration Documentation

anonymous enum

Enumerator
ONE_DIM |

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

## Constructor & Destructor Documentation

osl::move_probability::KingRelativeX::KingRelativeX | ( | ) |  |
| inline

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

## Member Function Documentation

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

Implements osl::move_probability::Feature.

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

References osl::alt(), osl::Move::from(), osl::move_probability::SquareY::fromTo(), osl::Move::isDrop(), osl::Move::isPromotion(), osl::move_probability::MoveInfo::move, ONE_DIM, osl::move_probability::MoveInfo::player, osl::move_probability::StateInfo::progress8(), osl::Move::ptype(), osl::PTYPE_SIZE, osl::move_probability::StateInfo::state, osl::Move::to(), and osl::Square::x().

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

- move_probability/feature.h