All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
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]

Public Types

typedef PiecePairEval
< PiecePairWithStand< Table >
, Table > 
base_t
 
- Public Types inherited from osl::eval::ppair::PiecePairEval< PiecePairWithStand< Table >, Table >
typedef PiecePairEvalTableBase
< Table > 
base_t
 

Public Member Functions

 PiecePairWithStand (const SimpleState &state)
 
- Public Member Functions inherited from osl::eval::ppair::PiecePairEval< PiecePairWithStand< Table >, Table >
void changeTurn ()
 
int expect (const SimpleState &state, Move m) const
 この時 state は move する前 More...
 
void update (const SimpleState &new_state, Move last_move)
 この時 state は move した後 More...
 

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 &)
 
- Static Public Member Functions inherited from osl::eval::ppair::PiecePairEval< PiecePairWithStand< Table >, Table >
static int diffWithMove (const SimpleState &state, Move move)
 
- Static Public Member Functions inherited from osl::eval::ppair::PiecePairEvalTableBase< Table >
static int adjustPairs (const SimpleState &state, unsigned int new_index)
 駒が old_index から new_index に動いたときの値の差分 More...
 
static int adjustPairs (const SimpleState &state, unsigned int old_index, unsigned int new_index)
 
static int adjustPairs (const SimpleState &state, unsigned int old_index, unsigned int old_index2, unsigned int new_index)
 
static int diffAfterSimpleMove (const SimpleState &state, Square from, Square to, int promote_mask)
 
static int diffAfterDropMove (const SimpleState &state, Square to, PtypeO ptypeo)
 
static int diffAfterCaptureMove (const SimpleState &state, Square from, Square to, PtypeO victim, int promote_mask)
 
static int adjustPairsAfterMove (const SimpleState &state, unsigned int new_index)
 この時 state は move した後 More...
 
static int adjustPairsAfterMove (const SimpleState &state, unsigned int old_index, unsigned int new_index)
 
static int adjustPairsAfterMove (const SimpleState &state, unsigned int old_index, unsigned int old_index2, unsigned int new_index)
 
static int diffWithUpdate (const SimpleState &new_state, Move last_move)
 
static void setValues (const SimpleState &, container::PieceValues &)
 関係の値をPiece 毎の価値に変換する. More...
 
static bool initialized ()
 
static bool setUp (const char *filename)
 
static bool setUp ()
 
- Static Public Member Functions inherited from osl::eval::ppair::PiecePairEvalBase
static int roundUp (int v)
 
static int infty ()
 
static int captureValue (PtypeO ptypeo)
 

Protected Member Functions

 ~PiecePairWithStand ()
 
- Protected Member Functions inherited from osl::eval::ppair::PiecePairEval< PiecePairWithStand< Table >, Table >
 PiecePairEval (const SimpleState &state)
 
- Protected Member Functions inherited from osl::eval::ppair::PiecePairEvalTableBase< Table >
 PiecePairEvalTableBase (const SimpleState &state)
 
 ~PiecePairEvalTableBase ()
 
- Protected Member Functions inherited from osl::eval::ppair::PiecePairEvalBase
 PiecePairEvalBase ()
 
 ~PiecePairEvalBase ()
 

Additional Inherited Members

- Static Public Attributes inherited from osl::eval::ppair::PiecePairEvalBase
static const int ROUND_UP = 2
 roundup は 2^n であること More...
 
- Protected Attributes inherited from osl::eval::ppair::PiecePairEvalBase
int val
 

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

Definition at line 36 of file piecePairWithStand.h.

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 ( )
inlineprotected

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 
)
inlinestatic

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 
)
inlinestatic

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 
)
inlinestatic

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 
)
inlinestatic

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
template<class Table>
static int osl::eval::ppair::PiecePairWithStand< Table >::standBonus ( PtypeO  ptypeo)
inlinestatic
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: