My Project
|
#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 424 of file kingTable.h.
anonymous enum |
Enumerator | |
---|---|
DIM |
Definition at line 426 of file kingTable.h.
|
static |
Definition at line 707 of file kingTable.cc.
|
static |
Definition at line 667 of file kingTable.cc.
References osl::BLACK, osl::NumEffectState::effectSetAt(), osl::Piece::isEmpty(), osl::SimpleState::kingPiece(), osl::SimpleState::pieceAt(), osl::NumEffectState::piecesOnBoard(), osl::PieceMask::reset(), and osl::Piece::square().
|
static |
Definition at line 633 of file kingTable.cc.
References osl::BLACK, osl::NumEffectState::effectSetAt(), osl::Piece::isEmpty(), osl::SimpleState::kingPiece(), osl::SimpleState::pieceAt(), osl::NumEffectState::piecesOnBoard(), osl::PieceMask::reset(), and osl::Piece::square().
|
static |
Definition at line 718 of file kingTable.cc.
References osl::container::BoardMask::anyInRange(), osl::BLACK, osl::NumEffectState::changedEffects(), osl::Move::from(), osl::SimpleState::kingSquare(), osl::container::BoardMaskTable5x5::mask(), osl::container::BoardMask::set(), osl::Move::to(), and osl::WHITE.
|
inlinestatic |
Definition at line 437 of file kingTable.h.
|
static |
Definition at line 622 of file kingTable.cc.
References osl::eval::ml::Weights::dimension(), osl::CArray< T, Capacity >::fill(), and osl::eval::ml::Weights::value().
Referenced by osl::eval::ml::King25EmptySquareNoEffectOpening::setUp(), and osl::eval::ml::King25EmptySquareNoEffectEnding::setUp().