Belofte
version 2.1.5
A promising chess program using the UCI or Winboard interface
|
Public Member Functions | |
bMoveList () | |
bMoveList (bBoard const &b) | |
bMoveList (bMoveList &&ml) noexcept | |
~bMoveList () | |
bMoveList (bMoveList const &)=delete | |
bMoveList & | operator= (bMoveList const &)=delete |
bMoveList & | operator= (bMoveList &&)=delete |
movenum_t | generateMoves (bBoard const &b) |
generate moves if not yet generated More... | |
movenum_t | generateAtLeastOneMove (bBoard const &b) |
see if at least one move can be played e.g. More... | |
movenum_t | generateEscapeKingMove (bBoard const &b) |
see if at least one move can be played e.g. More... | |
movenum_t | generateAtLeastOneQSMove (bBoard const &b) |
see if at least one QS move can be played More... | |
void | clearGeneratedMoves () |
movenum_t | getNumberOfMoves () const |
bMove const & | operator[] (movenum_t const moveid) const |
basicmove_t | getBasicMoveT (movenum_t const moveid) const |
move_t | getMoveT (movenum_t const moveid) const |
uint8_t | addMoveIfValid (bBoard const &b, bMove const &m, side_t const side) |
Only add move to movelist if valid. More... | |
uint8_t | addPromotionIfValid (bBoard const &b, bMove const &m, side_t const side) |
Only add move to movelist if valid. More... | |
movenum_t | updateScoreOfBestMove (movenum_t const moveid, bScore const score) |
Store score of move. More... | |
movenum_t | getBestMoveId () const |
bBestMoveInfo | getBestMoveInfo () const |
bScore | getScoreOfBestMove () const |
movenum_t | sortMoves () |
Protected Attributes | |
movelist_t | m_lmoves |
Friends | |
std::ostream & | operator<< (std::ostream &os, bMoveList const &ml) |
Definition at line 15 of file movelist.h.
bMoveList::bMoveList | ( | ) |
Definition at line 10 of file movelist.cpp.
|
explicit |
|
noexcept |
bMoveList::~bMoveList | ( | ) |
Definition at line 21 of file movelist.cpp.
|
delete |
generate moves if not yet generated
Definition at line 279 of file movelist.cpp.
Referenced by bMoveList(), and bBoard::generateMoves().
see if at least one move can be played e.g.
(stale-)mate eval
Definition at line 298 of file movelist.cpp.
Referenced by bBoard::generateAtLeastOneMove().
see if at least one move can be played e.g.
(stale-)mate eval in case player is in check, to speed up, start with king position
Definition at line 323 of file movelist.cpp.
see if at least one QS move can be played
Definition at line 355 of file movelist.cpp.
Referenced by bBoard::generateAtLeastOneQSMove().
void bMoveList::clearGeneratedMoves | ( | ) |
Definition at line 371 of file movelist.cpp.
Referenced by bGame::revertGameMove().
movenum_t bMoveList::getNumberOfMoves | ( | ) | const |
Definition at line 396 of file movelist.cpp.
Referenced by bPgnMove::bPgnMove(), bPgnMoveList::bPgnMoveList(), and SearchRandom::CalcBestMove().
Definition at line 381 of file movelist.cpp.
basicmove_t bMoveList::getBasicMoveT | ( | movenum_t const | moveid | ) | const |
Definition at line 386 of file movelist.cpp.
Referenced by bPgnMove::bPgnMove().
Definition at line 391 of file movelist.cpp.
Referenced by bPgnMove::bPgnMove(), SearchEvalPosOnly::CalcBestMove(), getBestMoveInfo(), and bSearchAlgorithm::SearchBestMove().
Only add move to movelist if valid.
b | board to act on |
m | move to be added |
side | player to move |
Definition at line 78 of file movelist.cpp.
Referenced by bPawn::addCapturePawnMove(), bPawn::addEPMove(), bPiece::addMove(), bPiece::addMoves(), bPawn::addNonCaptureDoublePawnMove(), bPawn::addNonCapturePawnMove(), bWhiteKing::GenerateMoves(), and bBlackKing::GenerateMoves().
Only add move to movelist if valid.
b | board to act on |
m | move to be added |
side | player to move |
Definition at line 114 of file movelist.cpp.
Referenced by bPawn::addCapturePromotionMove(), and bPawn::addNonCapturePromotionMove().
Store score of move.
moveid | of move to be stored [1 -> max number of moves] |
score | to be stored |
Definition at line 203 of file movelist.cpp.
Referenced by SearchEvalPosOnly::CalcBestMove(), and SearchRandom::CalcBestMove().
movenum_t bMoveList::getBestMoveId | ( | ) | const |
Definition at line 225 of file movelist.cpp.
Referenced by bSearchAlgorithm::SearchBestMove().
bBestMoveInfo bMoveList::getBestMoveInfo | ( | ) | const |
Definition at line 230 of file movelist.cpp.
Referenced by SearchRandom::CalcBestMove().
bScore bMoveList::getScoreOfBestMove | ( | ) | const |
Definition at line 239 of file movelist.cpp.
movenum_t bMoveList::sortMoves | ( | ) |
Definition at line 245 of file movelist.cpp.
Referenced by bSearchAlgorithm::SearchBestMove().
|
friend |
Definition at line 403 of file movelist.cpp.
|
protected |
Definition at line 52 of file movelist.h.
Referenced by clearGeneratedMoves(), generateAtLeastOneMove(), generateEscapeKingMove(), generateMoves(), getBasicMoveT(), getBestMoveInfo(), getMoveT(), getNumberOfMoves(), getScoreOfBestMove(), operator[](), sortMoves(), and updateScoreOfBestMove().