All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
osl::search::FixedEval Class Reference

#include <fixedEval.h>

Inheritance diagram for osl::search::FixedEval:
Inheritance graph
[legend]

Public Member Functions

 FixedEval ()
 
void setDrawValue (int value)
 
int drawValue () const
 

Static Public Member Functions

static int winByFoul (Player P)
 相手の王手千日手,打歩詰. More...
 
static int winByLoop (Player P)
 駒得するループ. More...
 
static int winByCheckmate (Player P)
 詰による勝 More...
 
static int minusInfty (Player P)
 探索windowの下限 (負けでも更新される値) More...
 
static int winThreshold (Player P)
 この値を越えれば勝. More...
 
static int windowMax (Player P)
 探索して意味がある範囲 (偶数) More...
 
static int brinkmatePenalty (Player P, int limit)
 必死(に見える)局面の評価値 Pが負けそう More...
 
static int threatmatePenalty (Player P)
 末端で詰めろがかかっている場合のペナルティ. More...
 
static int isWinValue (Player P, int val)
 勝かどうか. More...
 

Protected Member Functions

 ~FixedEval ()
 

Private Attributes

int draw_value
 

Detailed Description

Definition at line 12 of file fixedEval.h.

Constructor & Destructor Documentation

osl::search::FixedEval::~FixedEval ( )
inlineprotected

Definition at line 16 of file fixedEval.h.

osl::search::FixedEval::FixedEval ( )
inline

Definition at line 18 of file fixedEval.h.

Member Function Documentation

static int osl::search::FixedEval::brinkmatePenalty ( Player  P,
int  limit 
)
inlinestatic

必死(に見える)局面の評価値 Pが負けそう

Parameters
limit受を生成した閾値 大きい方が信頼できる必死

Definition at line 76 of file fixedEval.h.

References osl::alt(), osl::eval::convert(), and winByFoul().

int osl::search::FixedEval::drawValue ( ) const
inline

Definition at line 25 of file fixedEval.h.

References draw_value.

static int osl::search::FixedEval::isWinValue ( Player  P,
int  val 
)
inlinestatic
static int osl::search::FixedEval::minusInfty ( Player  P)
inlinestatic

探索windowの下限 (負けでも更新される値)

Definition at line 53 of file fixedEval.h.

References osl::alt(), and winByCheckmate().

void osl::search::FixedEval::setDrawValue ( int  value)
inline

Definition at line 21 of file fixedEval.h.

References draw_value.

static int osl::search::FixedEval::threatmatePenalty ( Player  P)
inlinestatic

末端で詰めろがかかっている場合のペナルティ.

P に詰めろがかかっている場合に threatmatePenalty(P)を足す

Definition at line 84 of file fixedEval.h.

References osl::alt(), and winByFoul().

static int osl::search::FixedEval::winByCheckmate ( Player  P)
inlinestatic
static int osl::search::FixedEval::winByFoul ( Player  P)
inlinestatic

相手の王手千日手,打歩詰.

考慮対象外の手は詰より評価を下げる.

Definition at line 31 of file fixedEval.h.

References osl::eval::convert().

Referenced by brinkmatePenalty(), threatmatePenalty(), and winByLoop().

static int osl::search::FixedEval::winByLoop ( Player  P)
inlinestatic

駒得するループ.

考慮対象外の手は詰より評価を下げる.

Definition at line 39 of file fixedEval.h.

References winByFoul().

Referenced by osl::game_playing::SearchPlayer::setUpTable().

static int osl::search::FixedEval::windowMax ( Player  P)
inlinestatic

探索して意味がある範囲 (偶数)

Definition at line 67 of file fixedEval.h.

References winByCheckmate().

static int osl::search::FixedEval::winThreshold ( Player  P)
inlinestatic

Member Data Documentation

int osl::search::FixedEval::draw_value
private

Definition at line 14 of file fixedEval.h.

Referenced by drawValue(), and setDrawValue().


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