持駒の点数は表以外で管理するフレームワーク. More...
#include <piecePairWithStand.h>
Public Types | |
typedef PiecePairEval < PiecePairWithStand< Table > , Table > | base_t |
![]() | |
typedef PiecePairEvalTableBase < Table > | base_t |
Public Member Functions | |
PiecePairWithStand (const SimpleState &state) | |
![]() | |
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 int | diffWithMove (const SimpleState &state, Move move) |
![]() | |
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 int | roundUp (int v) |
static int | infty () |
static int | captureValue (PtypeO ptypeo) |
Protected Member Functions | |
~PiecePairWithStand () | |
![]() | |
PiecePairEval (const SimpleState &state) | |
![]() | |
PiecePairEvalTableBase (const SimpleState &state) | |
~PiecePairEvalTableBase () | |
![]() | |
PiecePairEvalBase () | |
~PiecePairEvalBase () | |
Additional Inherited Members | |
![]() | |
static const int | ROUND_UP = 2 |
roundup は 2^n であること More... | |
![]() | |
int | val |
持駒の点数は表以外で管理するフレームワーク.
(持駒の点数を表に書き込むと,同じ種類の駒を複数もっていると問 題が起こるため) => その後盤上の駒も管理 (点数を変更可能にするため)
Definition at line 23 of file piecePairWithStand.h.
typedef PiecePairEval<PiecePairWithStand<Table>, Table> osl::eval::ppair::PiecePairWithStand< Table >::base_t |
Definition at line 36 of file piecePairWithStand.h.
|
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.
|
inlineprotected |
Definition at line 39 of file piecePairWithStand.h.
|
inlinestatic |
Definition at line 58 of file piecePairWithStand.h.
|
inlinestatic |
Definition at line 41 of file piecePairWithStand.h.
|
inlinestatic |
Definition at line 46 of file piecePairWithStand.h.
|
inlinestatic |
Definition at line 72 of file piecePairWithStand.h.
|
static |
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().
|
inlinestatic |
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().
|
static |
Definition at line 31 of file piecePairWithStand.tcc.
References osl::Piece::isOnBoard(), osl::Piece::ptypeO(), and result.