持駒の点数は表以外で管理するフレームワーク. More...
#include <piecePairWithStand.h>
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 () |
持駒の点数は表以外で管理するフレームワーク.
(持駒の点数を表に書き込むと,同じ種類の駒を複数もっていると問 題が起こるため) => その後盤上の駒も管理 (点数を変更可能にするため)
Definition at line 23 of file piecePairWithStand.h.
typedef PiecePairEval<PiecePairWithStand<Table>, Table> osl::eval::ppair::PiecePairWithStand< Table >::base_t |
Reimplemented from osl::eval::ppair::PiecePairEval< PiecePairWithStand< Table >, Table >.
Reimplemented in osl::eval::ppair::PiecePairPieceEval.
Definition at line 36 of file piecePairWithStand.h.
osl::eval::ppair::PiecePairWithStand< Table >::PiecePairWithStand | ( | const SimpleState & | state | ) | [explicit] |
Definition at line 46 of file piecePairWithStand.tcc.
References osl::Piece::ptypeO(), osl::Piece::SIZE, osl::eval::ppair::PiecePairWithStand< Table >::standBonus(), and osl::eval::ppair::PiecePairEvalBase::val.
osl::eval::ppair::PiecePairWithStand< Table >::~PiecePairWithStand | ( | ) | [inline, protected] |
Definition at line 39 of file piecePairWithStand.h.
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.
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.
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.
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.
void osl::eval::ppair::PiecePairWithStand< Table >::setValues | ( | const SimpleState & | state, |
container::PieceValues & | values | ||
) | [static] |
関係の値をPiece 毎の価値に変換する.
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().
static int osl::eval::ppair::PiecePairWithStand< Table >::standBonus | ( | PtypeO | ptypeo | ) | [inline, static] |
Definition at line 27 of file piecePairWithStand.h.
Referenced by osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffAfterCaptureMove(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffAfterDropMove(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffWithUpdate(), and osl::eval::ppair::PiecePairWithStand< Table >::PiecePairWithStand().
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.