All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Static Public Member Functions
osl::checkmate::LibertyEstimator Struct Reference

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

#include <libertyEstimator.h>

List of all members.

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

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 61 of file libertyEstimator.h.

References osl::alt(), 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(), and osl::ntesuki::NtesukiRecord::generateMoves().

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 105 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().

Referenced by osl::ntesuki::NtesukiRecord::generateMoves().


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