All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
osl::eval::ppair::PiecePairWithStand< Table > Class Template Reference

持駒の点数は表以外で管理するフレームワーク. More...

#include <piecePairWithStand.h>

Inheritance diagram for osl::eval::ppair::PiecePairWithStand< Table >:
Inheritance graph
[legend]
Collaboration diagram for osl::eval::ppair::PiecePairWithStand< Table >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef PiecePairEval
< PiecePairWithStand< Table >
, Table > 
base_t

Public Member Functions

 PiecePairWithStand (const SimpleState &state)

Static Public Member Functions

static int standBonus (PtypeO ptypeo)
static int standBonus (const SimpleState &state)
static int diffAfterDropMove (const SimpleState &state, Square to, PtypeO ptypeo)
static int diffAfterSimpleMove (const SimpleState &state, Square from, Square to, int promote_mask)
static int diffAfterCaptureMove (const SimpleState &state, Square from, Square to, PtypeO victim, int promote_mask)
static int diffWithUpdate (const SimpleState &new_state, Move last_move)
static void setValues (const SimpleState &, container::PieceValues &)
 関係の値をPiece 毎の価値に変換する.

Protected Member Functions

 ~PiecePairWithStand ()

Detailed Description

template<class Table>
class osl::eval::ppair::PiecePairWithStand< Table >

持駒の点数は表以外で管理するフレームワーク.

(持駒の点数を表に書き込むと,同じ種類の駒を複数もっていると問 題が起こるため) => その後盤上の駒も管理 (点数を変更可能にするため)

Definition at line 23 of file piecePairWithStand.h.


Member Typedef Documentation

template<class Table>
typedef PiecePairEval<PiecePairWithStand<Table>, Table> osl::eval::ppair::PiecePairWithStand< Table >::base_t

Constructor & Destructor Documentation

template<class Table >
osl::eval::ppair::PiecePairWithStand< Table >::PiecePairWithStand ( const SimpleState &  state) [explicit]
template<class Table>
osl::eval::ppair::PiecePairWithStand< Table >::~PiecePairWithStand ( ) [inline, protected]

Definition at line 39 of file piecePairWithStand.h.


Member Function Documentation

template<class Table>
static int osl::eval::ppair::PiecePairWithStand< Table >::diffAfterCaptureMove ( const SimpleState &  state,
Square  from,
Square  to,
PtypeO  victim,
int  promote_mask 
) [inline, static]

Reimplemented from osl::eval::ppair::PiecePairEvalTableBase< Table >.

Definition at line 58 of file piecePairWithStand.h.

template<class Table>
static int osl::eval::ppair::PiecePairWithStand< Table >::diffAfterDropMove ( const SimpleState &  state,
Square  to,
PtypeO  ptypeo 
) [inline, static]

Reimplemented from osl::eval::ppair::PiecePairEvalTableBase< Table >.

Definition at line 41 of file piecePairWithStand.h.

template<class Table>
static int osl::eval::ppair::PiecePairWithStand< Table >::diffAfterSimpleMove ( const SimpleState &  state,
Square  from,
Square  to,
int  promote_mask 
) [inline, static]

Reimplemented from osl::eval::ppair::PiecePairEvalTableBase< Table >.

Definition at line 46 of file piecePairWithStand.h.

template<class Table>
static int osl::eval::ppair::PiecePairWithStand< Table >::diffWithUpdate ( const SimpleState &  new_state,
Move  last_move 
) [inline, static]

Reimplemented from osl::eval::ppair::PiecePairEvalTableBase< Table >.

Definition at line 72 of file piecePairWithStand.h.

template<class Table >
void osl::eval::ppair::PiecePairWithStand< Table >::setValues ( const SimpleState &  state,
container::PieceValues values 
) [static]

関係の値をPiece 毎の価値に変換する.

  • 駒Aの価値は r(A,A) + (r(A+B)/2)
  • 但し,A,Bのどちらか(のみ)玉の時には,玉でない方に関係の点数を集める

Reimplemented from osl::eval::ppair::PiecePairEvalTableBase< Table >.

Definition at line 11 of file piecePairWithStand.tcc.

References osl::isBasic(), osl::isMajorBasic(), osl::Piece::isOnBoard(), osl::newPtypeO(), osl::Piece::owner(), osl::PAWN, osl::Piece::ptype(), and osl::Piece::ptypeO().

template<class Table>
static int osl::eval::ppair::PiecePairWithStand< Table >::standBonus ( PtypeO  ptypeo) [inline, static]
template<class Table >
int osl::eval::ppair::PiecePairWithStand< Table >::standBonus ( const SimpleState &  state) [static]

Definition at line 31 of file piecePairWithStand.tcc.

References osl::Piece::isOnBoard(), osl::Piece::ptypeO(), and result.


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