#include <king8.h>
Public Types | |
| enum | { DIM = 32 + 32 + 288 + 288 } |
Static Public Member Functions | |
| static void | setUp (const Weights &weights) |
| static int | eval (const NumEffectState &state) |
Private Types | |
| enum | EffectState { NOT_EMPTY = -1, NO_EFFECT = 0, LESS_EFFECT, MORE_EFFECT, MORE_EFFECT_KING_ONLY } |
Static Private Member Functions | |
| static int | index (const Direction dir, EffectState state) |
| static int | indexY (Piece king, const Direction dir, EffectState state) |
| static void | effectState (const NumEffectState &state, const Player defense, const Direction dir, EffectState &empty, EffectState &) |
Static Private Attributes | |
| static CArray< int, 32 > | empty_table |
| static CArray< int, 32 > | defense_table |
| static CArray< int, 288 > | empty_y_table |
| static CArray< int, 288 > | defense_y_table |
Definition at line 18 of file core/osl/eval/king8.h.
| anonymous enum |
| Enumerator | |
|---|---|
| DIM | |
Definition at line 21 of file core/osl/eval/king8.h.
|
private |
| Enumerator | |
|---|---|
| NOT_EMPTY | |
| NO_EFFECT | |
| LESS_EFFECT | |
| MORE_EFFECT | |
| MORE_EFFECT_KING_ONLY | |
Definition at line 25 of file core/osl/eval/king8.h.
|
staticprivate |
Definition at line 101 of file king8.cc.
References osl::alt(), osl::Board_Table, osl::NumEffectState::countEffect(), osl::Piece::isEmpty(), osl::SimpleState::kingSquare(), LESS_EFFECT, MORE_EFFECT, MORE_EFFECT_KING_ONLY, osl::BoardTable::nextSquare(), NO_EFFECT, NOT_EMPTY, and osl::SimpleState::pieceAt().
Referenced by eval(), osl::eval::ml::King8EffectAll::eval(), indexY(), and osl::eval::ml::King8EffectAll::King8EffectAll().
|
static |
Definition at line 40 of file king8.cc.
References osl::BLACK, defense_table, defense_y_table, effectState(), empty_table, empty_y_table, index(), indexY(), osl::SimpleState::kingPiece(), NOT_EMPTY, osl::SHORT8_DIRECTION_MAX, osl::SHORT8_DIRECTION_MIN, and osl::WHITE.
Referenced by osl::eval::ml::King8EffectAll::King8EffectAll().
|
staticprivate |
Definition at line 82 of file king8.cc.
References indexY().
Referenced by osl::eval::ml::KingXBlockedYBase::adjust(), osl::eval::ml::KingXBothBlocked::adjust(), eval(), osl::eval::ml::King8EffectAll::eval(), osl::eval::ml::KingXBothBlocked::eval(), osl::eval::ml::King8EffectBase::evalCommon(), osl::eval::ml::AnagumaEmpty::evalOne(), osl::eval::ml::King8EffectBase::evalWithUpdateCommon(), osl::eval::ml::KingXBothBlocked::indexY(), and osl::eval::ml::King8EffectAll::King8EffectAll().
|
staticprivate |
Definition at line 89 of file king8.cc.
References osl::BLACK, effectState(), osl::Piece::owner(), osl::Piece::square(), and osl::Square::y().
Referenced by eval(), index(), and osl::eval::ml::KingXBlocked3Y::setUp().
|
static |
Definition at line 17 of file king8.cc.
References osl::eval::ml::Weights::value().
|
staticprivate |
Definition at line 34 of file core/osl/eval/king8.h.
Referenced by eval().
|
staticprivate |
Definition at line 36 of file core/osl/eval/king8.h.
Referenced by eval().
|
staticprivate |
Definition at line 33 of file core/osl/eval/king8.h.
Referenced by eval().
|
staticprivate |
Definition at line 35 of file core/osl/eval/king8.h.
Referenced by eval().
1.8.13