#include <kingTable.h>
Public Types | |
enum | { DIM = 3 * 5 } |
Static Public Member Functions | |
template<Player defense> | |
static int | evalOne (const NumEffectState &state, const CArray< int, 15 > &table) |
template<Player defense> | |
static std::pair< int, int > | evalOne (const NumEffectState &state, const CArray< int, 15 > &opening, const CArray< int, 15 > &ending) |
static std::pair< CArray< int, 2 > , CArray< int, 2 > > | eval (const NumEffectState &state, const CArray< int, 15 > &opening, const CArray< int, 15 > &ending) |
static std::pair< CArray< int, 2 > , CArray< int, 2 > > | evalWithUpdate (const NumEffectState &state, Move last_move, const CArray< int, 15 > &opening, const CArray< int, 15 > &ending, const CArray< int, 2 > &last_opening_value, const CArray< int, 2 > &last_ending_value) |
static int | index (int rel_x, int rel_y) |
static void | setUpBase (const Weights &weigths, CArray< int, 15 > &table) |
Definition at line 428 of file kingTable.h.
anonymous enum |
Definition at line 430 of file kingTable.h.
std::pair< osl::CArray< int, 2 >, osl::CArray< int, 2 > > osl::eval::ml::King25EmptySquareNoEffect::eval | ( | const NumEffectState & | state, |
const CArray< int, 15 > & | opening, | ||
const CArray< int, 15 > & | ending | ||
) | [static] |
Definition at line 708 of file kingTable.cc.
int osl::eval::ml::King25EmptySquareNoEffect::evalOne | ( | const NumEffectState & | state, |
const CArray< int, 15 > & | table | ||
) | [static] |
Definition at line 634 of file kingTable.cc.
References osl::BLACK, osl::eval::max(), osl::eval::min(), result, osl::Piece::square(), and target.
std::pair< int, int > osl::eval::ml::King25EmptySquareNoEffect::evalOne | ( | const NumEffectState & | state, |
const CArray< int, 15 > & | opening, | ||
const CArray< int, 15 > & | ending | ||
) | [static] |
Definition at line 668 of file kingTable.cc.
References osl::BLACK, osl::eval::max(), osl::eval::min(), osl::Piece::square(), and target.
std::pair< osl::CArray< int, 2 >, osl::CArray< int, 2 > > osl::eval::ml::King25EmptySquareNoEffect::evalWithUpdate | ( | const NumEffectState & | state, |
Move | last_move, | ||
const CArray< int, 15 > & | opening, | ||
const CArray< int, 15 > & | ending, | ||
const CArray< int, 2 > & | last_opening_value, | ||
const CArray< int, 2 > & | last_ending_value | ||
) | [static] |
Definition at line 719 of file kingTable.cc.
References osl::BLACK, osl::container::Board_Mask_Table5x5, osl::Move::from(), osl::container::BoardMaskTable5x5::mask(), osl::Move::to(), and osl::WHITE.
static int osl::eval::ml::King25EmptySquareNoEffect::index | ( | int | rel_x, |
int | rel_y | ||
) | [inline, static] |
Definition at line 441 of file kingTable.h.
void osl::eval::ml::King25EmptySquareNoEffect::setUpBase | ( | const Weights & | weigths, |
CArray< int, 15 > & | table | ||
) | [static] |
Definition at line 623 of file kingTable.cc.
References osl::eval::ml::Weights::dimension(), and osl::eval::ml::Weights::value().