#include <piecePairKing.h>
Public 型 | |
enum | { ONE_DIM = 1488375, DIM = ONE_DIM } |
Static Public メソッド | |
static void | setUp (const Weights &weights) |
static CArray< int, 2 > | eval (const NumEffectState &) |
template<Player P> | |
static void | evalWithUpdateBang (const NumEffectState &state, Move moved, CArray< int, 2 > &last_value) |
template<Player King> | |
static int | evalOne (const NumEffectState &) |
Static Private メソッド | |
template<Player King> | |
static int | add (const NumEffectState &state, Square to, Ptype ptype) |
template<Player King> | |
static int | sub (const NumEffectState &state, Square from, Ptype ptype) |
template<Player King> | |
static int | addSub (const NumEffectState &state, Square to, Ptype ptype, Square from) |
static int | composeIndex (int king, int i0, int i1) |
static int | indexWhite (Square p) |
static int | indexKing (Player owner, Square king, bool &flipx) |
template<bool FlipX> | |
static int | indexPiece (Player owner, Square position, Ptype ptype) |
Static Private 変数 | |
static osl::CArray< int16_t, ONE_DIM > | table |
piecePairKing.h の 14 行で定義されています。
anonymous enum |
piecePairKing.h の 17 行で定義されています。
int osl::eval::ml::PiecePairKing::add | ( | const NumEffectState & | state, | |
Square | to, | |||
Ptype | ptype | |||
) | [static, private] |
piecePairKing.cc の 87 行で定義されています。
参照先 osl::BLACK, osl::PieceMask::clearBit(), composeIndex(), indexKing(), osl::KING, osl::SimpleState::kingSquare(), osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::NumEffectState::promotedPieces(), osl::Piece::ptype(), osl::Piece::square(), osl::Square::squareForBlack(), table, と osl::Square::y().
int osl::eval::ml::PiecePairKing::addSub | ( | const NumEffectState & | state, | |
Square | to, | |||
Ptype | ptype, | |||
Square | from | |||
) | [static, private] |
piecePairKing.cc の 165 行で定義されています。
参照先 osl::BLACK, osl::PieceMask::clearBit(), composeIndex(), indexKing(), osl::KING, osl::SimpleState::kingSquare(), osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::NumEffectState::promotedPieces(), osl::Piece::ptype(), osl::Piece::square(), osl::Square::squareForBlack(), table, と osl::Square::y().
static int osl::eval::ml::PiecePairKing::composeIndex | ( | int | king, | |
int | i0, | |||
int | i1 | |||
) | [inline, static, private] |
osl::CArray< int, 2 > osl::eval::ml::PiecePairKing::eval | ( | const NumEffectState & | state | ) | [static] |
piecePairKing.cc の 29 行で定義されています。
int osl::eval::ml::PiecePairKing::evalOne | ( | const NumEffectState & | state | ) | [static] |
piecePairKing.cc の 39 行で定義されています。
参照先 osl::BLACK, osl::PieceMask::clearBit(), composeIndex(), indexKing(), osl::KING, osl::SimpleState::kingSquare(), osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::NumEffectState::promotedPieces(), osl::FixedCapacityVector< T, Capacity >::push_back(), osl::FixedCapacityVector< T, Capacity >::size(), osl::Piece::square(), osl::Square::squareForBlack(), と table.
template void osl::eval::ml::PiecePairKing::evalWithUpdateBang< WHITE > | ( | const NumEffectState & | state, | |
Move | moved, | |||
CArray< int, 2 > & | last_value | |||
) | [static] |
piecePairKing.cc の 214 行で定義されています。
参照先 osl::alt(), osl::captured(), osl::Move::capturePtype(), osl::Move::from(), osl::Move::isDrop(), osl::Move::isPass(), osl::isPromoted(), osl::SimpleState::kingSquare(), osl::Move::oldPtype(), osl::Move::player(), osl::Move::ptype(), osl::Square::squareForBlack(), osl::Move::to(), と osl::Square::y().
static int osl::eval::ml::PiecePairKing::indexKing | ( | Player | owner, | |
Square | king, | |||
bool & | flipx | |||
) | [inline, static, private] |
piecePairKing.h の 44 行で定義されています。
参照先 osl::BLACK, osl::Square::flipHorizontal(), osl::Square::rotate180(), osl::Square::x(), と osl::Square::y().
static int osl::eval::ml::PiecePairKing::indexWhite | ( | Square | p | ) | [inline, static, private] |
void osl::eval::ml::PiecePairKing::setUp | ( | const Weights & | weights | ) | [static] |
piecePairKing.cc の 10 行で定義されています。
参照先 composeIndex(), osl::eval::ml::Weights::dimension(), indexKing(), table, osl::eval::ml::Weights::value(), と osl::WHITE.
int osl::eval::ml::PiecePairKing::sub | ( | const NumEffectState & | state, | |
Square | from, | |||
Ptype | ptype | |||
) | [static, private] |
piecePairKing.cc の 127 行で定義されています。
参照先 osl::BLACK, osl::PieceMask::clearBit(), composeIndex(), indexKing(), osl::KING, osl::SimpleState::kingSquare(), osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::NumEffectState::promotedPieces(), osl::Piece::ptype(), osl::Piece::square(), osl::Square::squareForBlack(), table, と osl::Square::y().
osl::CArray< int16_t, 1488375 > osl::eval::ml::PiecePairKing::table [static, private] |