#include <majorPiece.h>
Public Types | |
enum | { ONE_DIM = 32, DIM = ONE_DIM * EvalStages } |
Static Public Member Functions | |
static void | setUp (const Weights &weights) |
static MultiInt | eval (const NumEffectState &state) |
Static Private Member Functions | |
static int | indexK (Player player, PtypeO ptypeO, int x_diff, int y_diff) |
template<Player P> | |
static int | indexX (PtypeO ptypeO, int x) |
Static Private Attributes | |
static CArray< MultiInt, 32 > | table |
static CArray< MultiInt, 4896 > | king_table |
static CArray< MultiInt, 160 > | x_table |
Friends | |
class | BishopHeadKingRelative |
class | BishopHeadX |
Definition at line 428 of file majorPiece.h.
anonymous enum |
Definition at line 433 of file majorPiece.h.
MultiInt osl::eval::ml::BishopHead::eval | ( | const NumEffectState & | state | ) | [static] |
Definition at line 708 of file majorPiece.cc.
References osl::BLACK, osl::PtypeTraits< BISHOP >::indexMin, osl::Piece::isOnBoardNotPromoted(), osl::Piece::owner(), result, osl::Piece::square(), osl::WHITE, osl::Square::x(), osl::eval::ml::ppair::x_table, and osl::Square::y().
Referenced by osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval(), and osl::eval::ml::OpenMidEndingEval::updateSub().
static int osl::eval::ml::BishopHead::indexK | ( | Player | player, |
PtypeO | ptypeO, | ||
int | x_diff, | ||
int | y_diff | ||
) | [inline, static, private] |
Definition at line 437 of file majorPiece.h.
References osl::ptypeOIndex(), and osl::WHITE.
static int osl::eval::ml::BishopHead::indexX | ( | PtypeO | ptypeO, |
int | x | ||
) | [inline, static, private] |
Definition at line 450 of file majorPiece.h.
References osl::altIfPiece(), osl::ptypeOIndex(), and osl::WHITE.
void osl::eval::ml::BishopHead::setUp | ( | const Weights & | weights | ) | [static] |
Definition at line 665 of file majorPiece.cc.
References osl::NStages, and osl::eval::ml::Weights::value().
friend class BishopHeadKingRelative [friend] |
Definition at line 430 of file majorPiece.h.
friend class BishopHeadX [friend] |
Definition at line 431 of file majorPiece.h.
osl::misc::CArray< MultiInt, 4896 > osl::eval::ml::BishopHead::king_table [static, private] |
Definition at line 463 of file majorPiece.h.
Referenced by osl::eval::ml::BishopHeadKingRelative::setUp().
osl::misc::CArray< MultiInt, 32 > osl::eval::ml::BishopHead::table [static, private] |
Definition at line 462 of file majorPiece.h.
Referenced by osl::eval::ml::BishopHeadKingRelative::setUp().
osl::misc::CArray< MultiInt, 160 > osl::eval::ml::BishopHead::x_table [static, private] |
Definition at line 464 of file majorPiece.h.
Referenced by osl::eval::ml::BishopHeadX::setUp().