#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 osl::state::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 146 of file eval/ml/king8.h.
anonymous enum |
Definition at line 149 of file eval/ml/king8.h.
Definition at line 162 of file eval/ml/king8.h.
osl::eval::ml::King8EffectAll::King8EffectAll | ( | ) | [inline] |
Definition at line 171 of file eval/ml/king8.h.
void osl::eval::ml::King8EffectAll::effectState | ( | const NumEffectState & | state, |
const Player | defense, | ||
const Direction | dir, | ||
EffectState & | empty, | ||
EffectState & | defense_effect | ||
) | [static] |
Definition at line 436 of file eval/ml/king8.cc.
References osl::alt(), osl::Board_Table, osl::Piece::isEmpty(), osl::Square::isOnBoard(), osl::Piece::isOnBoardByOwner(), osl::BoardTable::nextSquare(), and target.
int osl::eval::ml::King8EffectAll::eval | ( | const osl::state::NumEffectState & | state, |
PieceMask | black_mask, | ||
PieceMask | white_mask | ||
) | [static] |
Definition at line 487 of file eval/ml/king8.cc.
References osl::BLACK, osl::state::NumEffectState::Iking8Info(), osl::checkmate::King8Info::liberty(), result, osl::SHORT8_DIRECTION_MAX, osl::SHORT8_DIRECTION_MIN, and osl::WHITE.
int osl::eval::ml::King8EffectAll::index | ( | const Direction | dir, |
EffectState | state | ||
) | [static] |
Definition at line 481 of file eval/ml/king8.cc.
void osl::eval::ml::King8EffectAll::setUp | ( | const Weights & | weights | ) | [static] |
Definition at line 408 of file eval/ml/king8.cc.
References osl::eval::ml::Weights::value().
osl::misc::CArray< int, osl::eval::ml::King8EffectAll::ONE_DIM > osl::eval::ml::King8EffectAll::base_defense_piece_table [static, private] |
Definition at line 156 of file eval/ml/king8.h.
osl::misc::CArray< int, osl::eval::ml::King8EffectAll::ONE_DIM > osl::eval::ml::King8EffectAll::base_table [static, private] |
Definition at line 151 of file eval/ml/king8.h.
osl::misc::CArray< int, osl::eval::ml::King8EffectAll::ONE_DIM > osl::eval::ml::King8EffectAll::d_defense_piece_table [static, private] |
Definition at line 158 of file eval/ml/king8.h.
osl::misc::CArray< int, osl::eval::ml::King8EffectAll::ONE_DIM > osl::eval::ml::King8EffectAll::d_table [static, private] |
Definition at line 153 of file eval/ml/king8.h.
osl::misc::CArray< int, osl::eval::ml::King8EffectAll::ONE_DIM > osl::eval::ml::King8EffectAll::l_defense_piece_table [static, private] |
Definition at line 159 of file eval/ml/king8.h.
osl::misc::CArray< int, osl::eval::ml::King8EffectAll::ONE_DIM > osl::eval::ml::King8EffectAll::l_table [static, private] |
Definition at line 154 of file eval/ml/king8.h.
osl::misc::CArray< int, osl::eval::ml::King8EffectAll::ONE_DIM > osl::eval::ml::King8EffectAll::r_defense_piece_table [static, private] |
Definition at line 160 of file eval/ml/king8.h.
osl::misc::CArray< int, osl::eval::ml::King8EffectAll::ONE_DIM > osl::eval::ml::King8EffectAll::r_table [static, private] |
Definition at line 155 of file eval/ml/king8.h.
osl::misc::CArray< int, osl::eval::ml::King8EffectAll::ONE_DIM > osl::eval::ml::King8EffectAll::u_defense_piece_table [static, private] |
Definition at line 157 of file eval/ml/king8.h.
osl::misc::CArray< int, osl::eval::ml::King8EffectAll::ONE_DIM > osl::eval::ml::King8EffectAll::u_table [static, private] |
Definition at line 152 of file eval/ml/king8.h.