玉と他の駒の関係を保持 More...
#include <kingPieceTable.h>
Public Types | |
enum | { EffectiveDimension = 81*2*82*PTYPE_SIZE } |
Public Member Functions | |
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 () |
Static Public Member Functions | |
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 () |
Protected Member Functions | |
KingPieceTable () | |
Protected Attributes | |
CArray2d< int, Square::SIZE *2, Square::SIZE *PTYPE_SIZE > | data |
Friends | |
bool | operator== (const KingPieceTable &l, KingPieceTable &r) |
玉と他の駒の関係を保持
Definition at line 28 of file kingPieceTable.h.
anonymous enum |
Enumerator | |
---|---|
EffectiveDimension |
Definition at line 31 of file kingPieceTable.h.
|
inlineprotected |
Definition at line 34 of file kingPieceTable.h.
References data.
void osl::eval::endgame::KingPieceTable::clear | ( | ) |
Definition at line 120 of file kingPieceTable.cc.
|
inlinestatic |
Definition at line 63 of file kingPieceTable.h.
References EffectiveDimension.
|
inlinestatic |
Definition at line 52 of file kingPieceTable.h.
References osl::Square::isPieceStand(), osl::playerToIndex(), osl::PTYPE_SIZE, osl::Square::x(), and osl::Square::y().
|
inlinestatic |
Definition at line 40 of file kingPieceTable.h.
References osl::Square::index(), and osl::playerToIndex().
Referenced by valueOf().
void osl::eval::endgame::KingPieceTable::loadText | ( | const char * | filename) |
Definition at line 41 of file kingPieceTable.cc.
Referenced by osl::eval::endgame::DefenseKing::loadText(), and osl::eval::endgame::AttackKing::loadText().
|
inlinestatic |
Definition at line 36 of file kingPieceTable.h.
References osl::Square::index(), and osl::PTYPE_SIZE.
Referenced by valueOf().
void osl::eval::endgame::KingPieceTable::randomize | ( | ) |
Definition at line 89 of file kingPieceTable.cc.
References osl::Square::index(), osl::Square::isPieceStand(), osl::PTYPE_SIZE, and osl::misc::random().
void osl::eval::endgame::KingPieceTable::resetWeights | ( | const int * | w) |
Definition at line 59 of file kingPieceTable.cc.
References osl::Square::index(), osl::indexToPlayer(), osl::Square::isPieceStand(), and osl::PTYPE_SIZE.
Referenced by osl::eval::endgame::DefenseKing::resetWeights(), and osl::eval::endgame::AttackKing::resetWeights().
void osl::eval::endgame::KingPieceTable::saveText | ( | const char * | filename) | const |
Definition at line 14 of file kingPieceTable.cc.
References osl::Square::index(), osl::Square::isPieceStand(), and osl::PTYPE_SIZE.
Referenced by osl::eval::endgame::DefenseKing::saveText().
|
inline |
Definition at line 44 of file kingPieceTable.h.
References data, kingIndex(), and otherIndex().
Referenced by osl::eval::endgame::DefenseKing::valueOf(), and osl::eval::endgame::AttackKing::valueOf().
|
inline |
Definition at line 48 of file kingPieceTable.h.
References data, kingIndex(), and otherIndex().
|
friend |
|
protected |
Definition at line 33 of file kingPieceTable.h.
Referenced by KingPieceTable(), osl::eval::endgame::operator==(), and valueOf().