My Project
|
#include <kingTable.h>
Public Types | |
enum | { DIM = 5 * 5 * 5 * 9 } |
Static Public Member Functions | |
static int | evalWithUpdate (const NumEffectState &state, osl::Move moved, int last_value) |
static void | setUp (const Weights &weigths) |
static int | eval (const NumEffectState &state) |
Static Private Member Functions | |
template<Player player> | |
static int | index (Square king, Square target) |
static int | index (Square king, Square target, Player player) |
template<Player Defense> | |
static int | evalOne (const NumEffectState &state) |
Static Private Attributes | |
static CArray< int, 1125 > | table |
Definition at line 465 of file kingTable.h.
anonymous enum |
Enumerator | |
---|---|
DIM |
Definition at line 468 of file kingTable.h.
|
static |
Definition at line 1147 of file kingTable.cc.
|
staticprivate |
Definition at line 1120 of file kingTable.cc.
References osl::BLACK, osl::Piece::isEmpty(), osl::Square::isOnBoard(), osl::SimpleState::kingSquare(), osl::SimpleState::pieceAt(), osl::Square::x(), and osl::Square::y().
|
static |
Definition at line 1154 of file kingTable.cc.
References osl::alt(), osl::BLACK, osl::captured(), osl::Move::capturePtype(), osl::Move::from(), osl::Move::isDrop(), osl::KING, osl::SimpleState::kingSquare(), osl::Move::player(), osl::Move::ptype(), osl::PTYPE_EMPTY, osl::Move::to(), osl::Square::x(), and osl::Square::y().
|
staticprivate |
Definition at line 1096 of file kingTable.cc.
References osl::BLACK, osl::WHITE, osl::Square::x(), and osl::Square::y().
|
inlinestaticprivate |
Definition at line 474 of file kingTable.h.
References osl::BLACK.
|
static |
Definition at line 1086 of file kingTable.cc.
References osl::eval::ml::Weights::dimension(), and osl::eval::ml::Weights::value().
|
staticprivate |
Definition at line 470 of file kingTable.h.