#include <king8.h>
Public Types | |
enum | { ONE_DIM = 32, DIM = 32 * 5 * 2 } |
enum | EffectState { NOT_EMPTY = -1, NO_EFFECT = 0, LESS_EFFECT, MORE_EFFECT, MORE_EFFECT_KING_ONLY } |
Public Member Functions | |
King8EffectAll () | |
Static Public Member Functions | |
static void | setUp (const Weights &weights) |
static int | eval (const NumEffectState &state, PieceMask black_mask, PieceMask white_mask) |
static void | effectState (const NumEffectState &state, const Player defense, const Direction dir, EffectState &empty, EffectState &) |
static int | index (const Direction dir, EffectState state) |
Static Private Attributes | |
static CArray< int, ONE_DIM > | base_table |
static CArray< int, ONE_DIM > | u_table |
static CArray< int, ONE_DIM > | d_table |
static CArray< int, ONE_DIM > | l_table |
static CArray< int, ONE_DIM > | r_table |
static CArray< int, ONE_DIM > | base_defense_piece_table |
static CArray< int, ONE_DIM > | u_defense_piece_table |
static CArray< int, ONE_DIM > | d_defense_piece_table |
static CArray< int, ONE_DIM > | l_defense_piece_table |
static CArray< int, ONE_DIM > | r_defense_piece_table |
Definition at line 144 of file core/osl/eval/king8.h.
anonymous enum |
Enumerator | |
---|---|
ONE_DIM | |
DIM |
Definition at line 147 of file core/osl/eval/king8.h.
Enumerator | |
---|---|
NOT_EMPTY | |
NO_EFFECT | |
LESS_EFFECT | |
MORE_EFFECT | |
MORE_EFFECT_KING_ONLY |
Definition at line 160 of file core/osl/eval/king8.h.
|
inline |
Definition at line 169 of file core/osl/eval/king8.h.
References osl::eval::ml::King8Effect::effectState(), osl::eval::ml::King8Effect::eval(), and osl::eval::ml::King8Effect::index().
|
static |
Definition at line 436 of file king8.cc.
References osl::alt(), osl::Board_Table, osl::NumEffectState::countEffect(), index(), osl::Piece::isEmpty(), osl::Square::isOnBoard(), osl::Piece::isOnBoardByOwner(), osl::SimpleState::kingSquare(), osl::eval::ml::King8Effect::LESS_EFFECT, osl::eval::ml::King8Effect::MORE_EFFECT, osl::eval::ml::King8Effect::MORE_EFFECT_KING_ONLY, osl::BoardTable::nextSquare(), osl::eval::ml::King8Effect::NO_EFFECT, osl::eval::ml::King8Effect::NOT_EMPTY, and osl::SimpleState::pieceAt().
|
static |
Definition at line 487 of file king8.cc.
References osl::BLACK, osl::eval::ml::King8Effect::effectState(), osl::NumEffectState::Iking8Info(), osl::eval::ml::King8Effect::index(), osl::checkmate::King8Info::liberty(), osl::eval::ml::King8Effect::NOT_EMPTY, osl::eval::ml::KingXBothBlocked::setUp(), osl::SHORT8_DIRECTION_MAX, osl::SHORT8_DIRECTION_MIN, osl::eval::ml::KingXBothBlocked::table, osl::eval::ml::KingXBothBlockedY::table, and osl::WHITE.
Referenced by index().
|
static |
|
static |
Definition at line 408 of file king8.cc.
References osl::eval::ml::Weights::value().
Referenced by osl::eval::ml::King8EffectDefenseSquareBoth::evalWithUpdate().
|
staticprivate |
Definition at line 154 of file core/osl/eval/king8.h.
Referenced by osl::eval::ml::King8EffectDefenseSquareBoth::evalWithUpdate().
|
staticprivate |
Definition at line 149 of file core/osl/eval/king8.h.
Referenced by osl::eval::ml::King8EffectDefenseSquareBoth::evalWithUpdate().
|
staticprivate |
Definition at line 156 of file core/osl/eval/king8.h.
Referenced by osl::eval::ml::King8EffectDefenseSquareBoth::evalWithUpdate().
|
staticprivate |
Definition at line 151 of file core/osl/eval/king8.h.
Referenced by osl::eval::ml::King8EffectDefenseSquareBoth::evalWithUpdate().
|
staticprivate |
Definition at line 157 of file core/osl/eval/king8.h.
Referenced by osl::eval::ml::King8EffectDefenseSquareBoth::evalWithUpdate().
|
staticprivate |
Definition at line 152 of file core/osl/eval/king8.h.
Referenced by osl::eval::ml::King8EffectDefenseSquareBoth::evalWithUpdate().
|
staticprivate |
Definition at line 158 of file core/osl/eval/king8.h.
Referenced by osl::eval::ml::King8EffectDefenseSquareBoth::evalWithUpdate().
|
staticprivate |
Definition at line 153 of file core/osl/eval/king8.h.
Referenced by osl::eval::ml::King8EffectDefenseSquareBoth::evalWithUpdate().
|
staticprivate |
Definition at line 155 of file core/osl/eval/king8.h.
Referenced by osl::eval::ml::King8EffectDefenseSquareBoth::evalWithUpdate().
|
staticprivate |
Definition at line 150 of file core/osl/eval/king8.h.
Referenced by osl::eval::ml::King8EffectDefenseSquareBoth::evalWithUpdate().