Belofte
version 2.1.5
A promising chess program using the UCI or Winboard interface
|
position on board, defined as 255 if invalid used primarily to compose a move or a source or destination field does not contain the piece that occupies it More...
Public Member Functions | |
bCase () | |
bCase (bCase &&) noexcept | |
bCase (case_t c) | |
bCase (std::string const &s) | |
bCase (column_t const c, rank_t const r) | |
~bCase () | |
bCase (bCase const &)=default | |
bCase & | operator= (bCase const &)=default |
bCase & | operator= (bCase &&)=default |
bCase & | operator= (std::string const &s) |
operator std::string () const | |
bool | operator== (bCase const rhs) const |
column_t | column () const |
rank_t | rank () const |
case_t | getCaseT () const |
Static Public Member Functions | |
static constexpr case_t | coordToCase (column_t const c, rank_t const r) |
static constexpr column_t | column (case_t const c) |
static constexpr rank_t | rank (case_t const c) |
Friends | |
std::ostream & | operator<< (std::ostream &os, bCase const &bc) |
position on board, defined as 255 if invalid used primarily to compose a move or a source or destination field does not contain the piece that occupies it
|
noexcept |
|
explicit |
|
default |
bCase & bCase::operator= | ( | std::string const & | s | ) |
column_t bCase::column | ( | ) | const |
Definition at line 56 of file move.cpp.
Referenced by bPawn::addCapturePawnMove(), bPawn::addCapturePromotionMove(), bPawn::addEPMove(), bPiece::addMove(), bPiece::addMoves(), bPawn::addNonCaptureDoublePawnMove(), bPawn::addNonCapturePawnMove(), bPawn::addNonCapturePromotionMove(), bBasicMove::fromcolumn(), bWhitePawn::GenerateMoves(), bBlackPawn::GenerateMoves(), bWhiteKing::GenerateMoves(), bBlackKing::GenerateMoves(), bPieceColour::isAttackedByPiece(), bPieceColour::isAttackedBySlider(), bKing::kingSeesRook(), and bBasicMove::tocolumn().
rank_t bCase::rank | ( | ) | const |
Definition at line 61 of file move.cpp.
Referenced by bPawn::addCapturePawnMove(), bPawn::addCapturePromotionMove(), bPawn::addEPMove(), bPiece::addMove(), bPiece::addMoves(), bPawn::addNonCaptureDoublePawnMove(), bPawn::addNonCapturePawnMove(), bPawn::addNonCapturePromotionMove(), bBasicMove::fromrank(), bWhitePawn::GenerateMoves(), bBlackPawn::GenerateMoves(), bWhiteKing::GenerateMoves(), bBlackKing::GenerateMoves(), bWhitePiece::isAttacked(), bBlackPiece::isAttacked(), bPieceColour::isAttackedByPiece(), bPieceColour::isAttackedBySlider(), bKing::kingSeesRook(), and bBasicMove::torank().
|
inlinestaticconstexpr |
Definition at line 40 of file move.h.
Referenced by bPawn::addCapturePawnMove(), bPawn::addCapturePromotionMove(), bPawn::addEPMove(), bPiece::addMove(), bPiece::addMoves(), bPawn::addNonCaptureDoublePawnMove(), bPawn::addNonCapturePawnMove(), bPawn::addNonCapturePromotionMove(), bBasicBoard::bBasicBoard(), bCase(), bPositionEvaluation::bPositionEvaluation(), bWhiteKing::GenerateMoves(), bBlackKing::GenerateMoves(), bBasicBoard::getPiece(), bBasicBoard::getPieceCtl(), bBoard::invert(), bBasicBoard::isFieldEmpty(), operator=(), and bBasicBoard::setCapture().