osl::checkmate::LibertyEstimator Struct Reference

玉の動ける場所を基本としたHの推定. More...

`#include <libertyEstimator.h>`

## Static Public Member Functions

template<class State>
static void | attackH (Player attacker, const State &, King8Info, Move move, unsigned int &proof_number, unsigned int &disproof_number)
| 攻撃側の move に対する proof_number と disproof_number を予想する
template<class State>
static void | defenseH (Player attacker, const State &, Move move, unsigned int &proof_number, unsigned int &disproof_number)
| 防御側の move に対する proof_number と disproof_number を予想する

## Detailed Description

玉の動ける場所を基本としたHの推定.

駒を取る/捨てるなども多少考慮する.

Definition at line 42 of file libertyEstimator.h.

## Member Function Documentation

## attackH()

template<typename State>

void osl::checkmate::LibertyEstimator::attackH | ( | Player | attacker,
|  | const State & | state,
|  | King8Info | info,
|  | Move | move,
|  | unsigned int & | proof_number,
|  | unsigned int & | disproof_number )

static

攻撃側の move に対する proof_number と disproof_number を予想する

効きが上回っていれば先にやってみる

駒を取る

Definition at line 60 of file libertyEstimator.h.

References osl::alt(), osl::checkmate::PureLibertyEstimator::attackH(), osl::Move::capturePtype(), osl::Move::from(), osl::GOLD, osl::Square::isPieceStand(), osl::PTYPE_EMPTY, osl::SILVER, osl::Move::to(), and osl::unpromote().

Referenced by osl::checkmate::Dfpn::attack().

## defenseH()

template<typename State>

void osl::checkmate::LibertyEstimator::defenseH | ( | Player | attacker,
|  | const State & | state,
|  | Move | move,
|  | unsigned int & | proof_number,
|  | unsigned int & | disproof_number )

static

防御側の move に対する proof_number と disproof_number を予想する

captureは価値が高い

Definition at line 104 of file libertyEstimator.h.

References osl::alt(), osl::Move::capturePtype(), osl::Move::isDrop(), osl::KING, osl::Move::ptype(), osl::PTYPE_EMPTY, and osl::Move::to().

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

- libertyEstimator.h