My Project
|
#include <piecePairKing.h>
Public Types | |
enum | { ONE_DIM = 1488375 , DIM = ONE_DIM } |
Static Public Member Functions | |
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 Member Functions | |
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 Attributes | |
static osl::CArray< int16_t, ONE_DIM > | table |
Definition at line 14 of file piecePairKing.h.
anonymous enum |
Enumerator | |
---|---|
ONE_DIM | |
DIM |
Definition at line 17 of file piecePairKing.h.
|
staticprivate |
Definition at line 86 of file piecePairKing.cc.
References osl::BLACK, osl::PieceMask::clearBit(), osl::KING, osl::SimpleState::kingSquare(), osl::container::PieceMask64::none(), osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::Piece::ptype(), osl::Piece::square(), osl::Square::squareForBlack(), osl::container::PieceMask64::takeOneBit(), and osl::Square::y().
|
staticprivate |
Definition at line 164 of file piecePairKing.cc.
References osl::BLACK, osl::PieceMask::clearBit(), osl::KING, osl::SimpleState::kingSquare(), osl::container::PieceMask64::none(), osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::Piece::ptype(), osl::Piece::square(), osl::Square::squareForBlack(), osl::container::PieceMask64::takeOneBit(), and osl::Square::y().
|
inlinestaticprivate |
Definition at line 36 of file piecePairKing.h.
|
static |
Definition at line 28 of file piecePairKing.cc.
References osl::BLACK, and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval().
|
static |
Definition at line 38 of file piecePairKing.cc.
References osl::BLACK, osl::PieceMask::clearBit(), osl::KING, osl::SimpleState::kingSquare(), osl::container::PieceMask64::none(), osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::FixedCapacityVector< T, Capacity >::push_back(), osl::FixedCapacityVector< T, Capacity >::size(), osl::Piece::square(), osl::Square::squareForBlack(), and osl::container::PieceMask64::takeOneBit().
|
static |
Definition at line 213 of file piecePairKing.cc.
References osl::alt(), osl::captured(), osl::Move::capturePtype(), osl::Move::from(), osl::Move::isDrop(), osl::Move::isPass(), osl::isPromoted(), osl::KING, osl::SimpleState::kingSquare(), osl::Move::oldPtype(), osl::Move::player(), osl::Move::ptype(), osl::PTYPE_EMPTY, osl::Square::squareForBlack(), osl::Move::to(), and osl::Square::y().
|
inlinestaticprivate |
Definition at line 44 of file piecePairKing.h.
References osl::BLACK, osl::Square::flipHorizontal(), osl::Square::rotate180(), osl::Square::x(), and osl::Square::y().
|
inlinestaticprivate |
Definition at line 59 of file piecePairKing.h.
References osl::BLACK, osl::Square::flipHorizontal(), indexWhite(), osl::isPromoted(), osl::PTYPE_BASIC_MIN, osl::Square::rotate180(), and osl::Square::y().
|
inlinestaticprivate |
Definition at line 40 of file piecePairKing.h.
References osl::Square::x(), and osl::Square::y().
Referenced by indexPiece().
|
static |
Definition at line 9 of file piecePairKing.cc.
References osl::eval::ml::Weights::dimension(), osl::eval::ml::Weights::value(), and osl::WHITE.
|
staticprivate |
Definition at line 126 of file piecePairKing.cc.
References osl::BLACK, osl::PieceMask::clearBit(), osl::KING, osl::SimpleState::kingSquare(), osl::container::PieceMask64::none(), osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::Piece::ptype(), osl::Piece::square(), osl::Square::squareForBlack(), osl::container::PieceMask64::takeOneBit(), and osl::Square::y().
|
staticprivate |
Definition at line 69 of file piecePairKing.h.