#include <kingTable.h>

Public Types | |
| enum | { BISHOP_ONE_DIM = 18 * 81 * (45*2), DIM = BISHOP_ONE_DIM*3 } |
Static Public Member Functions | |
| static void | setUp (const Weights &weights) |
| static int | eval (const NumEffectState &state) |
Static Private Member Functions | |
| static int | indexKing (Square king) |
| static int | indexRook (Square rook) |
| static int | indexSilver (Square silver) |
| template<Player KingOwner> | |
| static int | evalOne (const NumEffectState &state, int offset) |
Static Private Attributes | |
| static CArray< int, DIM > | table |
Definition at line 979 of file kingTable.h.
| anonymous enum |
Definition at line 1001 of file kingTable.h.
| int osl::eval::ml::BishopExchangeSilverKing::eval | ( | const NumEffectState & | state | ) | [static] |
Definition at line 1918 of file kingTable.cc.
References osl::BISHOP, osl::BLACK, osl::PAWN, and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingEval::debugInfo(), osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval(), and osl::eval::ml::OpenMidEndingEval::updateSub().
| int osl::eval::ml::BishopExchangeSilverKing::evalOne | ( | const NumEffectState & | state, |
| int | offset | ||
| ) | [static, private] |
Definition at line 1943 of file kingTable.cc.
References osl::alt(), osl::Piece::isOnBoard(), osl::Square::nth(), osl::Piece::owner(), osl::playerToMul(), osl::ROOK, osl::SILVER, osl::Piece::square(), and osl::Square::squareForBlack().
| static int osl::eval::ml::BishopExchangeSilverKing::indexKing | ( | Square | king | ) | [inline, static, private] |
Definition at line 981 of file kingTable.h.
References osl::Square::x(), and osl::Square::y().
| static int osl::eval::ml::BishopExchangeSilverKing::indexRook | ( | Square | rook | ) | [inline, static, private] |
Definition at line 988 of file kingTable.h.
References osl::Square::isOnBoard(), osl::Square::x(), and osl::Square::y().
| static int osl::eval::ml::BishopExchangeSilverKing::indexSilver | ( | Square | silver | ) | [inline, static, private] |
Definition at line 996 of file kingTable.h.
References osl::Square::x(), and osl::Square::y().
| void osl::eval::ml::BishopExchangeSilverKing::setUp | ( | const Weights & | weights | ) | [static] |
Definition at line 1911 of file kingTable.cc.
References osl::eval::ml::Weights::dimension(), and osl::eval::ml::Weights::value().
CArray<int, DIM> osl::eval::ml::BishopExchangeSilverKing::table [static, private] |
Definition at line 1007 of file kingTable.h.
1.7.6.1