#include <kingTable.h>

Public Types | |
| enum | { DIM = 17 * 128 * 2 } |
Static Public Member Functions | |
| template<Player Attack> | |
| static void | countEffectAndPiecesBoth (const osl::state::NumEffectState &state, PieceMask &effect25, PieceMask &effect_supported, int &attack_effect, int &attack_piece, int &defense_effect, int &defence_piece, int &attack_piece_supported, CArray< int, 5 > &effect_vertical, CArray< int, 5 > &king_vertical) |
| static void | setUp (const Weights &weights) |
| static int | eval (const NumEffectState &, int black_attack_effect, int black_attack_piece, int white_attack_effect, int white_attack_piece, int black_defense_effect, int black_defense_piece, int white_defense_effect, int white_defense_piece) |
Static Public Attributes | |
| static CArray< int, DIM/2 > | attack_table |
| static CArray< int, DIM/2 > | defense_table |
Static Private Member Functions | |
| static int | index (int effect, int piece_count) |
Definition at line 143 of file kingTable.h.
| anonymous enum |
Definition at line 163 of file kingTable.h.
| template void osl::eval::ml::King25EffectBoth::countEffectAndPiecesBoth< WHITE > | ( | const osl::state::NumEffectState & | state, |
| PieceMask & | effect25, | ||
| PieceMask & | effect_supported, | ||
| int & | attack_effect, | ||
| int & | attack_piece, | ||
| int & | defense_effect, | ||
| int & | defence_piece, | ||
| int & | attack_piece_supported, | ||
| CArray< int, 5 > & | effect_vertical, | ||
| CArray< int, 5 > & | king_vertical | ||
| ) | [static] |
Definition at line 514 of file kingTable.cc.
References osl::alt(), osl::BLACK, count, osl::state::NumEffectState::countEffect(), osl::state::NumEffectState::effectedMask(), osl::state::NumEffectState::effectSetAt(), osl::Piece::isEmpty(), osl::state::SimpleState::kingSquare(), osl::eval::max(), osl::eval::min(), osl::Piece::owner(), osl::state::SimpleState::pieceAt(), osl::state::NumEffectState::piecesOnBoard(), target, osl::Square::x(), and osl::Square::y().
| static int osl::eval::ml::King25EffectBoth::eval | ( | const NumEffectState & | , |
| int | black_attack_effect, | ||
| int | black_attack_piece, | ||
| int | white_attack_effect, | ||
| int | white_attack_piece, | ||
| int | black_defense_effect, | ||
| int | black_defense_piece, | ||
| int | white_defense_effect, | ||
| int | white_defense_piece | ||
| ) | [inline, static] |
Definition at line 167 of file kingTable.h.
References osl::eval::ml::KingPieceRelative::attack_table, osl::eval::ml::KingPieceRelative::defense_table, and osl::eval::ml::KingPieceRelative::index().
Referenced by osl::eval::ml::OpenMidEndingEval::debugInfo().
| static int osl::eval::ml::King25EffectBoth::index | ( | int | effect, |
| int | piece_count | ||
| ) | [inline, static, private] |
Definition at line 146 of file kingTable.h.
| void osl::eval::ml::King25EffectBoth::setUp | ( | const Weights & | weights | ) | [static] |
Definition at line 501 of file kingTable.cc.
References osl::eval::ml::Weights::value().
osl::misc::CArray< int, osl::eval::ml::King25EffectBoth::DIM/2 > osl::eval::ml::King25EffectBoth::attack_table [static] |
Definition at line 164 of file kingTable.h.
osl::misc::CArray< int, osl::eval::ml::King25EffectBoth::DIM/2 > osl::eval::ml::King25EffectBoth::defense_table [static] |
Definition at line 165 of file kingTable.h.
1.7.6.1