Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
|
#include <piece.h>
Public Member Functions | |
bBlackPiece () | |
~bBlackPiece () override | |
bool | canMovePreflightCheck (bBasicBoard &b, case_t const &cf, case_t const &ct) const override |
Check if any could be added by just checking there. | |
bool | canMovePreflightCheck (bBasicBoard &b, case_t const &cf, int8_t const ri, int8_t const ci, uint_fast8_t nMax=1) const override |
Check if pawn move could be added by just checking there is not check, case of possible promotion. | |
bool | canPawnMovePreflightCheck (bBasicBoard &b, case_t const &cf, int8_t const ri, int8_t const ci) const override |
Check if pawn move could be added by just checking there is not check, case of possible promotion. | |
bool | isAttacked (bBasicBoard const &b, case_t const &cf) const override |
movenum_t | addMove (bBasicBoard const &b, case_t const &cf, case_t const &ct, bMoveList &ml) const override |
movenum_t | addMoves (bBasicBoard const &b, case_t const &cf, int8_t const ri, int8_t const ci, bMoveList &ml) const override |
![]() | |
bPieceColour (side_t s) | |
virtual | ~bPieceColour () |
bPieceColour (bPieceColour const &)=delete | |
bPieceColour (bPieceColour &&)=delete | |
bPieceColour & | operator= (bPieceColour const &)=delete |
bPieceColour & | operator= (bPieceColour &&)=delete |
constexpr bool | isWhite () const |
constexpr bool | isBlack () const |
constexpr bool | isEmpty () const |
constexpr side_t | opponent () const |
constexpr side_t | toMove () const |
side_t | invert () |
Additional Inherited Members | |
![]() | |
bool | isAttackedBySlider (bBasicBoard const &b, case_t cf, column_t fromcol, rank_t fromrank, int8_t const ci, int8_t const ri, piece_t const cPiece, piece_t const cPiece2) const |
Return true if position is attacked by opponent respecting move offsets. | |
![]() | |
side_t | m_side = tSide::SIDE_UNDEFINED |
|
inline |
|
overridevirtual |
Check if any could be added by just checking there.
Implements bPieceColour.
Definition at line 467 of file piece.cpp.
Referenced by bBlackBishop::hasValidMovePreflightCheck(), bBlackKing::hasValidMovePreflightCheck(), bBlackKnight::hasValidMovePreflightCheck(), bBlackQueen::hasValidMovePreflightCheck(), and bBlackRook::hasValidMovePreflightCheck().
|
overridevirtual |
Check if pawn move could be added by just checking there is not check, case of possible promotion.
Implements bPieceColour.
Definition at line 489 of file piece.cpp.
|
overridevirtual |
Check if pawn move could be added by just checking there is not check, case of possible promotion.
Implements bPieceColour.
Definition at line 525 of file piece.cpp.
|
overridevirtual |
Reimplemented from bPieceColour.
Definition at line 303 of file piece.cpp.
Referenced by canMovePreflightCheck(), canMovePreflightCheck(), canPawnMovePreflightCheck(), and bBlackKing::GenerateMoves().
|
overridevirtual |
Implements bPieceColour.
Definition at line 567 of file piece.cpp.
Referenced by bBlackKing::GenerateMoves(), and bBlackKnight::GenerateMoves().
|
overridevirtual |
Implements bPieceColour.
Definition at line 618 of file piece.cpp.
Referenced by bBlackBishop::GenerateMoves(), bBlackQueen::GenerateMoves(), and bBlackRook::GenerateMoves().