My Project
|
#include <minorPiece.h>
Public Types | |
enum | { ONE_DIM = 64 , DIM = ONE_DIM * EvalStages } |
Static Public Member Functions | |
static void | setUp (const Weights &weights) |
static void | eval (const NumEffectState &state, MultiIntPair &out) |
template<Player P> | |
static void | evalWithUpdateBang (const NumEffectState &state, Move moved, const CArray< PieceMask, 2 > &effected_mask, MultiIntPair &last_value_and_out) |
template<int Sign> | |
static void | adjust (int black_turn_king_attack, int black_turn_king_defense, int white_turn_king_attack, int white_turn_king_defense, MultiIntPair &result) |
Static Private Member Functions | |
static int | index (bool same_turn, bool has_support, Ptype ptype) |
template<bool Attack> | |
static int | indexK (Square king, bool same_turn, bool has_support, Square position, Player owner, Ptype ptype) |
template<bool Attack> | |
static int | indexK (Square king, bool same_turn, bool has_support, Piece piece) |
template<Player Attacked> | |
static void | updateEffectChanged (const NumEffectState &state, const CArray< PieceMask, 2 > &effected_mask, const CArray< PieceMask, 2 > &new_mask, int moved_piece_number, MultiIntPair &result) |
Static Private Attributes | |
static CArray< MultiInt, 64 > | table |
static CArray< MultiInt, 19584 > | king_table |
Friends | |
class | NonPawnAttackedKingRelative |
Definition at line 909 of file minorPiece.h.
anonymous enum |
Enumerator | |
---|---|
ONE_DIM | |
DIM |
Definition at line 913 of file minorPiece.h.
|
static |
Definition at line 1134 of file minorPiece.cc.
References osl::BLACK, and osl::WHITE.
Referenced by updateEffectChanged().
|
static |
Definition at line 1155 of file minorPiece.cc.
References osl::PieceMask::any(), osl::BLACK, osl::PieceMask::clearBit(), osl::NumEffectState::effectedMask(), osl::PieceMask::getMask(), osl::SimpleState::kingSquare(), osl::PieceMask::orMask(), osl::PAWN, osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::NumEffectState::promotedPieces(), osl::PieceMask::reset(), osl::PieceMask::selectBit(), osl::container::PieceMask64::takeOneBit(), and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval().
|
static |
Definition at line 1239 of file minorPiece.cc.
References osl::alt(), osl::BLACK, osl::captured(), osl::Move::capturePtype(), osl::NumEffectState::effectedMask(), osl::Move::from(), osl::Move::isDrop(), osl::KING, osl::SimpleState::kingSquare(), osl::Piece::number(), osl::Move::oldPtype(), osl::Piece::owner(), osl::PAWN, osl::SimpleState::pieceAt(), osl::NumEffectState::piecesOnBoard(), osl::NumEffectState::promotedPieces(), osl::Move::ptype(), osl::PTYPE_EMPTY, osl::container::PieceMask64::takeOneBit(), osl::Move::to(), and osl::WHITE.
|
inlinestaticprivate |
Definition at line 929 of file minorPiece.h.
References osl::PTYPE_SIZE.
|
inlinestaticprivate |
Definition at line 947 of file minorPiece.h.
References osl::Piece::owner(), osl::Piece::ptype(), and osl::Piece::square().
|
inlinestaticprivate |
Definition at line 935 of file minorPiece.h.
References osl::BLACK, osl::PTYPE_SIZE, osl::Square::x(), and osl::Square::y().
|
static |
Definition at line 1102 of file minorPiece.cc.
References osl::NStages, and osl::eval::ml::Weights::value().
|
inlinestaticprivate |
Definition at line 956 of file minorPiece.h.
References adjust(), osl::alt(), osl::PieceMask::any(), osl::BLACK, osl::SimpleState::kingSquare(), osl::Piece::number(), osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::PieceMask::reset(), osl::container::PieceMask64::takeOneBit(), and osl::WHITE.
|
friend |
Definition at line 911 of file minorPiece.h.
|
staticprivate |
Definition at line 1075 of file minorPiece.h.
Referenced by osl::eval::ml::NonPawnAttackedKingRelative::setUp().
|
staticprivate |
Definition at line 1074 of file minorPiece.h.
Referenced by osl::eval::ml::NonPawnAttackedKingRelative::setUp().