#include <pieceStand.h>
Public Types | |
enum | { ONE_DIM = osl::Piece::SIZE * 9, DIM = ONE_DIM * 2*EvalStages } |
Static Public Member Functions | |
static void | setUp (const Weights &weights) |
static MultiInt | eval (const NumEffectState &state) |
template<Player P> | |
static MultiInt | evalWithUpdate (const NumEffectState &state, Move moved, const MultiInt &last_value) |
Static Private Member Functions | |
static int | index (Ptype ptype, Player player, Square king, int count) |
static int | index (int i, Player player, Square king, int count) |
static void | updateResult (NumEffectState const &state, MultiInt &result, int i, Ptype ptype, CArray< Square, 2 > const &kings) |
Static Private Attributes | |
static CArray< MultiInt, 360 > | y_attack_table |
static CArray< MultiInt, 360 > | y_defense_table |
static CArray< MultiInt, 9 *7 *19 > | y_attack_table_sum |
static CArray< MultiInt, 9 *7 *19 > | y_defense_table_sum |
Definition at line 118 of file eval/ml/pieceStand.h.
anonymous enum |
Definition at line 137 of file eval/ml/pieceStand.h.
osl::MultiInt osl::eval::ml::PieceStandY::eval | ( | const NumEffectState & | state | ) | [static] |
Definition at line 360 of file eval/ml/pieceStand.cc.
References osl::BISHOP, osl::BLACK, osl::GOLD, osl::KNIGHT, osl::LANCE, osl::PAWN, result, osl::ROOK, osl::SILVER, and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval().
template MultiInt osl::eval::ml::PieceStandY::evalWithUpdate< WHITE > | ( | const NumEffectState & | state, |
Move | moved, | ||
const MultiInt & | last_value | ||
) | [static] |
Definition at line 379 of file eval/ml/pieceStand.cc.
References osl::alt(), osl::BLACK, osl::Move::capturePtype(), count, osl::Move::isCapture(), osl::Move::isDrop(), osl::KING, osl::Move::ptype(), result, and osl::unpromote().
static int osl::eval::ml::PieceStandY::index | ( | Ptype | ptype, |
Player | player, | ||
Square | king, | ||
int | count | ||
) | [inline, static, private] |
Definition at line 125 of file eval/ml/pieceStand.h.
References osl::BLACK, count, osl::PtypeTable::getIndexMin(), osl::Ptype_Table, and osl::Square::y().
Referenced by updateResult().
static int osl::eval::ml::PieceStandY::index | ( | int | i, |
Player | player, | ||
Square | king, | ||
int | count | ||
) | [inline, static, private] |
Definition at line 130 of file eval/ml/pieceStand.h.
References osl::BLACK, count, and osl::Square::y().
void osl::eval::ml::PieceStandY::setUp | ( | const Weights & | weights | ) | [static] |
Definition at line 313 of file eval/ml/pieceStand.cc.
References osl::BLACK, count, osl::PtypeTable::getIndexLimit(), osl::PtypeTable::getIndexMin(), osl::NStages, osl::PieceStand::order, osl::Ptype_Table, and osl::eval::ml::Weights::value().
void osl::eval::ml::PieceStandY::updateResult | ( | NumEffectState const & | state, |
MultiInt & | result, | ||
int | i, | ||
Ptype | ptype, | ||
CArray< Square, 2 > const & | kings | ||
) | [inline, static, private] |
Definition at line 347 of file eval/ml/pieceStand.cc.
References osl::BLACK, osl::state::SimpleState::countPiecesOnStand(), index(), and osl::WHITE.
osl::misc::CArray< osl::MultiInt, 360 > osl::eval::ml::PieceStandY::y_attack_table [static, private] |
Definition at line 121 of file eval/ml/pieceStand.h.
osl::misc::CArray< osl::MultiInt, 9 *7 *19 > osl::eval::ml::PieceStandY::y_attack_table_sum [static, private] |
Definition at line 123 of file eval/ml/pieceStand.h.
osl::misc::CArray< osl::MultiInt, 360 > osl::eval::ml::PieceStandY::y_defense_table [static, private] |
Definition at line 122 of file eval/ml/pieceStand.h.
osl::misc::CArray< osl::MultiInt, 9 *7 *19 > osl::eval::ml::PieceStandY::y_defense_table_sum [static, private] |
Definition at line 124 of file eval/ml/pieceStand.h.