Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
|
#include <piece.h>
Public Member Functions | |
bBlackPiece () | |
~bBlackPiece () override | |
bool | canMovePreflightCheck (bBoard &b, case_t const &cf, int8_t const ri, int8_t const ci) const override |
Check if move could be added by just checking there is not check. | |
bool | canMovePreflightCheck (bBoard &b, case_t const &cf, int8_t const ri, int8_t const ci, piece_t const cPromotion) const override |
Check if pawn move could be added by just checking there is not check, case of possible promotion. | |
bool | isAttacked (bBoard const &b, case_t const &cf) const override |
movenum_t | addMove (bBoard const &b, case_t const &cf, int8_t const ri, int8_t const ci, bMoveList &ml) const final |
movenum_t | addMoves (bBoard const &b, case_t const &cf, int8_t const ri, int8_t const ci, bMoveList &ml) const final |
![]() | |
bPieceColour (side_t s) | |
virtual | ~bPieceColour () |
bPieceColour (bPieceColour const &)=delete | |
bPieceColour (bPieceColour &&)=delete | |
bPieceColour & | operator= (bPieceColour const &)=delete |
bPieceColour & | operator= (bPieceColour &&)=delete |
bool | isWhite () const |
bool | isBlack () const |
bool | isEmpty () const |
side_t | invert () |
side_t | opponent () const |
side_t | toMove () const |
Additional Inherited Members | |
![]() | |
bool | isAttackedByPiece (bBoard const &b, column_t const fromcol, rank_t const fromrank, piece_t const cPiece, int8_t const ri, int8_t const ci) const |
Return true if position is attacked by opponent respecting move offsets. | |
bool | isAttackedBySlider (bBoard const &b, column_t const fromcol, rank_t const fromrank, piece_t const cPiece, piece_t const cPiece2, int8_t const ri, int8_t const ci) const |
Return true if position is attacked by opponent respecting move offsets. | |
![]() | |
side_t | m_side = tSide::SIDE_UNDEFINED |
|
overridevirtual |
Check if move could be added by just checking there is not check.
Implements bPieceColour.
Definition at line 473 of file piece.cpp.
Referenced by bBlackKnight::hasValidMovePreflightCheck(), bBlackBishop::hasValidMovePreflightCheck(), bBlackRook::hasValidMovePreflightCheck(), bBlackQueen::hasValidMovePreflightCheck(), and bBlackKing::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 505 of file piece.cpp.
Implements bPieceColour.
Definition at line 284 of file piece.cpp.
Referenced by bMoveList::addBlackMoveIfValid(), bMoveList::addBlackPromotionIfValid(), bMoveList::addWhiteMoveIfValid(), bMoveList::addWhitePromotionIfValid(), canMovePreflightCheck(), canMovePreflightCheck(), bBlackKing::GenerateMoves(), and bPositionEvaluation::isGameEnded().
|
finalvirtual |
Implements bPieceColour.
Definition at line 554 of file piece.cpp.
Referenced by bBlackKnight::GenerateMoves(), and bBlackKing::GenerateMoves().
|
finalvirtual |
Implements bPieceColour.
Definition at line 604 of file piece.cpp.
Referenced by bBlackBishop::GenerateMoves(), bBlackRook::GenerateMoves(), and bBlackQueen::GenerateMoves().