Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
|
#include <move.h>
Public Member Functions | |
bMove (bMove const &m) | |
bMove (bMove &&m) | |
bMove (case_t cf, case_t ct) | |
~bMove () override | |
bMove & | operator= (bMove &&m) |
bool | operator> (bMove const &r) const |
bMove & | operator= (bMove const &)=delete |
piece_t | getWhitePromotionPiece () const |
piece_t | getBlackPromotionPiece () const |
bool | isPromotion () const |
bool | isMajorPromotion () const |
test if major promotion or mating promotion (queen, knight) if minor promotion, move is considered as silent | |
void | setPromotion (const ppiece_t p) |
bool | isCapture () const |
void | setCapture () |
bool | isPawnMove () const |
void | setPawnMove () |
bool | isCastleMove () const |
void | setShortCastleMove () |
void | setLongCastleMove () |
bool | isLongCastleMove () const |
bool | isCheck () const |
void | setCheck () |
void | setGameEnd () |
bool | getGameEnd () const |
bool | isEndOfGame () const |
Flag if mated. | |
bool | isEPPossible () const |
void | setEPPossible () |
bool | isEPMove () const |
void | setEPMove () |
bool | isNonSilent () const |
void | setScore (bScore const s) |
bScore | getScore () const |
std::string | getMoveEvalStr () const |
![]() | |
bBasicMove (bBasicMove const &bm) | |
bBasicMove (bBasicMove &&bm) | |
bBasicMove (basicmove_t const bmt) | |
bBasicMove (case_t cf, case_t ct) | |
virtual | ~bBasicMove () |
bBasicMove & | operator= (bBasicMove &&bm) |
bBasicMove & | operator= (bBasicMove const &bm) |
operator std::string () const | |
MEMBER_CONSTEXPR case_t | from () const |
MEMBER_CONSTEXPR case_t | to () const |
rank_t | fromrank () const |
column_t | fromcolumn () const |
rank_t | torank () const |
column_t | tocolumn () const |
basicmove_t | getBasicMoveT () const |
ppiece_t | getPromotion () const |
Additional Inherited Members | ||
![]() | ||
union { | ||
uint32_t u_bmove = 0UL | ||
struct { | ||
basicmove_t m_bmove | ||
uint8_t m_flag | ||
ppiece_t m_promotion | ||
} | ||
}; | ||
bool bMove::operator> | ( | bMove const & | r | ) | const |
bool bMove::isMajorPromotion | ( | ) | const |
test if major promotion or mating promotion (queen, knight) if minor promotion, move is considered as silent
Definition at line 152 of file move.cpp.
Referenced by isNonSilent().
|
inline |
Definition at line 85 of file move.h.
Referenced by bMoveList::addBlackPromotionIfValid(), and bMoveList::addWhitePromotionIfValid().
|
inline |
Definition at line 87 of file move.h.
Referenced by getMoveEvalStr(), and isNonSilent().
|
inline |
Definition at line 88 of file move.h.
Referenced by bMoveList::addBlackCaptureIfValid(), bWhitePawn::addCapturePromotionMove(), bBlackPawn::addCapturePromotionMove(), bWhitePawn::addEPMove(), bBlackPawn::addEPMove(), and bMoveList::addWhiteCaptureIfValid().
|
inline |
Definition at line 92 of file move.h.
Referenced by bWhiteKing::GenerateMoves(), and bBlackKing::GenerateMoves().
|
inline |
Definition at line 93 of file move.h.
Referenced by bWhiteKing::GenerateMoves(), and bBlackKing::GenerateMoves().
|
inline |
Definition at line 95 of file move.h.
Referenced by getMoveEvalStr(), and isEndOfGame().
|
inline |
Definition at line 98 of file move.h.
Referenced by isEndOfGame().
bool bMove::isEndOfGame | ( | ) | const |
Flag if mated.
Definition at line 140 of file move.cpp.
Referenced by getMoveEvalStr().
|
inline |
Definition at line 101 of file move.h.
Referenced by bWhitePawn::addNonCaptureDoublePawnMove(), and bBlackPawn::addNonCaptureDoublePawnMove().
|
inline |
Definition at line 102 of file move.h.
Referenced by getMoveEvalStr(), and isNonSilent().
|
inline |
Definition at line 103 of file move.h.
Referenced by bWhitePawn::addEPMove(), and bBlackPawn::addEPMove().
|
inline |