#include <kingTable.h>
Public Member Functions | |
template<osl::Player Defense> | |
int | effectStateIndex3 (const NumEffectState &state, Square target) |
template<osl::Player Defense> | |
void | index (const NumEffectState &state, Square target, int &index_xy, int rel_y, int king_x, int king_y, int x_diff) |
template<osl::Player Defense> | |
void | evalOne (const NumEffectState &state, MultiInt &out) |
Static Public Member Functions | |
static void | eval (const NumEffectState &state, MultiIntPair &out) |
static void | evalWithUpdate (const NumEffectState &state, Move last_move, MultiIntPair &values) |
Private Types | |
enum | EffectState { NO_ATTACK_DEFENSE_0, NO_ATTACK_DEFENSE_1, NO_ATTACK_DEFENSE_2, ATTACK_DIFF_N2, ATTACK_DIFF_N1, ATTACK_DIFF_0, ATTACK_DIFF_1, ATTACK_DIFF_2, STATE_MAX } |
Static Private Member Functions | |
template<Player Defense> | |
static int | effectStateIndex3 (const NumEffectState &state, Square target) |
template<Player Defense> | |
static void | index (const NumEffectState &state, Square target, int &index_xy, int rel_y, int king_x, int king_y, int x_diff) |
template<osl::Player Defense> | |
static void | evalOne (const NumEffectState &state, MultiInt &out) |
Static Private Attributes | |
static CArray< MultiInt, 5 *3 *8 *3 > | table |
static CArray< MultiInt, 3000 > | x_table |
static CArray< MultiInt, 3240 > | y_table |
static CArray< MultiInt, 27000 > | xy_table |
static CArray< int, 256 > | effect_state_table |
Friends | |
class | King25EffectEachBothOpening |
class | King25EffectEachBothMidgame |
class | King25EffectEachBothMidgame2 |
class | King25EffectEachBothEnding |
class | King25EffectEachXY |
class | King25EffectEachKXY |
Definition at line 569 of file kingTable.h.
|
private |
Enumerator | |
---|---|
NO_ATTACK_DEFENSE_0 | |
NO_ATTACK_DEFENSE_1 | |
NO_ATTACK_DEFENSE_2 | |
ATTACK_DIFF_N2 | |
ATTACK_DIFF_N1 | |
ATTACK_DIFF_0 | |
ATTACK_DIFF_1 | |
ATTACK_DIFF_2 | |
STATE_MAX |
Definition at line 571 of file kingTable.h.
|
staticprivate |
int osl::eval::ml::King25EffectEachBoth::effectStateIndex3 | ( | const NumEffectState & | state, |
Square | target | ||
) |
Definition at line 955 of file kingTable.cc.
|
static |
Definition at line 1050 of file kingTable.cc.
References osl::BLACK, and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval().
|
staticprivate |
void osl::eval::ml::King25EffectEachBoth::evalOne | ( | const NumEffectState & | state, |
MultiInt & | out | ||
) |
Definition at line 993 of file kingTable.cc.
References osl::BLACK, osl::eval::max(), osl::eval::min(), out, target, osl::WHITE, osl::Square::x(), and osl::Square::y().
|
static |
Definition at line 1058 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.
Referenced by osl::eval::ml::OpenMidEndingEval::updateSub().
|
staticprivate |
void osl::eval::ml::King25EffectEachBoth::index | ( | const NumEffectState & | state, |
Square | target, | ||
int & | index_xy, | ||
int | rel_y, | ||
int | king_x, | ||
int | king_y, | ||
int | x_diff | ||
) |
Definition at line 965 of file kingTable.cc.
References osl::BLACK, osl::Piece::ptypeO(), and target.
|
friend |
Definition at line 586 of file kingTable.h.
|
friend |
Definition at line 584 of file kingTable.h.
|
friend |
Definition at line 585 of file kingTable.h.
|
friend |
Definition at line 583 of file kingTable.h.
|
friend |
Definition at line 588 of file kingTable.h.
|
friend |
Definition at line 587 of file kingTable.h.
|
staticprivate |
Definition at line 594 of file kingTable.h.
Referenced by osl::eval::ml::King25EffectEachXY::setUp().
|
staticprivate |
Definition at line 590 of file kingTable.h.
Referenced by osl::eval::ml::King25EffectEachBothOpening::setUp(), osl::eval::ml::King25EffectEachBothMidgame::setUp(), osl::eval::ml::King25EffectEachBothMidgame2::setUp(), osl::eval::ml::King25EffectEachBothEnding::setUp(), and osl::eval::ml::King25EffectEachXY::setUp().
|
staticprivate |
Definition at line 591 of file kingTable.h.
Referenced by osl::eval::ml::King25EffectEachXY::setUp(), and osl::eval::ml::King25EffectEachKXY::setUp().
|
staticprivate |
Definition at line 593 of file kingTable.h.
Referenced by osl::eval::ml::King25EffectEachKXY::setUp().
|
staticprivate |
Definition at line 592 of file kingTable.h.
Referenced by osl::eval::ml::King25EffectEachXY::setUp(), and osl::eval::ml::King25EffectEachKXY::setUp().