Public Member Functions | |
Table () | |
![]() | |
int & | valueOf (Square king, Player defense, Square other, Ptype ptype) |
int | valueOf (Square king, Player defense, Square other, Ptype ptype) const |
void | saveText (const char *filename) const |
kingPieceTable.cc More... | |
void | loadText (const char *filename) |
void | resetWeights (const int *w) |
void | randomize () |
void | clear () |
Private Member Functions | |
void | adhoc_edge_king_1 (const Player player, const Square king, const Square attack) |
void | adhoc_edge_king_2 (const Player player, const Square king, const Square attack) |
Additional Inherited Members | |
![]() | |
enum | { EffectiveDimension = 81*2*82*PTYPE_SIZE } |
![]() | |
static int | otherIndex (Square other, Ptype ptype) |
static int | kingIndex (Square king, Player defense) |
static int | effectiveIndexOf (Square king, Player defense, Square other, Ptype ptype) |
static int | dimension () |
![]() | |
KingPieceTable () | |
![]() | |
CArray2d< int, Square::SIZE *2, Square::SIZE *PTYPE_SIZE > | data |
Definition at line 21 of file attackKing.h.
osl::eval::endgame::AttackKing::Table::Table | ( | ) |
Definition at line 110 of file attackKing.cc.
References osl::BISHOP, osl::BLACK, osl::GOLD, osl::isMajorBasic(), osl::isPiece(), osl::KING, osl::KNIGHT, osl::LANCE, osl::eval::max(), osl::eval::min(), osl::newPtypeO(), osl::PAWN, osl::PBISHOP, osl::PKNIGHT, osl::PLANCE, osl::PPAWN, osl::PROOK, osl::PSILVER, osl::eval::Ptype_Eval_Table, osl::PTYPE_MAX, osl::PTYPE_PIECE_MIN, osl::ROOK, osl::Square::rotate180(), osl::SILVER, osl::Square::STAND(), osl::unpromote(), osl::eval::PtypeEvalTable::value(), and osl::WHITE.
|
private |
Definition at line 79 of file attackKing.cc.
References osl::KING, osl::PPAWN, osl::ROOK, and osl::eval::endgame::AttackKing::valueOf().
|
private |
Definition at line 94 of file attackKing.cc.
References osl::GOLD, osl::PPAWN, osl::PSILVER, and osl::SILVER.