#include <pieceStand.h>
Public Types | |
enum | { DIM = osl::Piece::SIZE } |
Public Member Functions | |
PieceStand () | |
Static Public Member Functions | |
static void | setUp (const Weights &weights, int stage) |
static MultiInt | eval (const NumEffectState &state) |
template<Player P> | |
static MultiInt | evalWithUpdate (const NumEffectState &state, Move moved, MultiInt last_value) |
Static Private Attributes | |
static CArray< MultiInt, osl::Piece::SIZE > | table |
Definition at line 22 of file eval/ml/pieceStand.h.
anonymous enum |
Definition at line 26 of file eval/ml/pieceStand.h.
osl::eval::ml::PieceStand::PieceStand | ( | ) | [inline] |
Definition at line 27 of file eval/ml/pieceStand.h.
osl::MultiInt osl::eval::ml::PieceStand::eval | ( | const NumEffectState & | state | ) | [static] |
Definition at line 17 of file eval/ml/pieceStand.cc.
References osl::BLACK, osl::state::SimpleState::countPiecesOnStand(), osl::PtypeTable::getIndexMin(), osl::PieceStand::order, osl::Ptype_Table, result, table, and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval().
static MultiInt osl::eval::ml::PieceStand::evalWithUpdate | ( | const NumEffectState & | state, |
Move | moved, | ||
MultiInt | last_value | ||
) | [inline, static] |
Definition at line 31 of file eval/ml/pieceStand.h.
References osl::BLACK, osl::captured(), osl::Move::capturePtype(), count, osl::PtypeTable::getIndexMin(), osl::Move::isDrop(), osl::Move::player(), osl::Move::ptype(), osl::PTYPE_EMPTY, osl::Ptype_Table, table, and osl::unpromote().
void osl::eval::ml::PieceStand::setUp | ( | const Weights & | weights, |
int | stage | ||
) | [static] |
Definition at line 9 of file eval/ml/pieceStand.cc.
References osl::eval::ml::Weights::dimension(), and osl::eval::ml::Weights::value().
osl::misc::CArray< osl::MultiInt, osl::Piece::SIZE > osl::eval::ml::PieceStand::table [static, private] |
Definition at line 24 of file eval/ml/pieceStand.h.
Referenced by eval(), and evalWithUpdate().