HooverChessUtils_PgnReader 0.9.0
Loading...
Searching...
No Matches
Static Public Member Functions | Static Private Attributes | List of all members
hoover_chess_utils::pgn_reader::PawnLookups Class Reference

#include <pawn-lookups.h>

Static Public Member Functions

static SquareSet singleAdvanceNoPromoLegalDstMask (Color turn) noexcept
 
static SquareSet rank3 (Color turn) noexcept
 
static SquareSet rank8 (Color turn) noexcept
 
static std::int64_t pawnAdvanceShift (Color turn) noexcept
 

Static Private Attributes

static constexpr std::array< SquareSet, 2U > ctRank8
 
static constexpr std::array< SquareSet, 2U > ctRank3
 
static constexpr std::array< std::int64_t, 2U > ctPawnAdvanceShift
 
static constexpr std::array< SquareSet, 2U > ctAdvanceNoPromoLegalDstMask
 

Member Function Documentation

◆ pawnAdvanceShift()

static std::int64_t hoover_chess_utils::pgn_reader::PawnLookups::pawnAdvanceShift ( Color  turn)
inlinestaticnoexcept

◆ rank3()

static SquareSet hoover_chess_utils::pgn_reader::PawnLookups::rank3 ( Color  turn)
inlinestaticnoexcept

◆ rank8()

static SquareSet hoover_chess_utils::pgn_reader::PawnLookups::rank8 ( Color  turn)
inlinestaticnoexcept

◆ singleAdvanceNoPromoLegalDstMask()

static SquareSet hoover_chess_utils::pgn_reader::PawnLookups::singleAdvanceNoPromoLegalDstMask ( Color  turn)
inlinestaticnoexcept

Member Data Documentation

◆ ctAdvanceNoPromoLegalDstMask

constexpr std::array<SquareSet, 2U> hoover_chess_utils::pgn_reader::PawnLookups::ctAdvanceNoPromoLegalDstMask
staticconstexprprivate
Initial value:
{
}
static constexpr SquareSet row(RowColumn row) noexcept
Returns a set of squares in row number row.
Definition chessboard-types-squareset.h:485

◆ ctPawnAdvanceShift

constexpr std::array<std::int64_t, 2U> hoover_chess_utils::pgn_reader::PawnLookups::ctPawnAdvanceShift
staticconstexprprivate
Initial value:
{
8,
-8
}

◆ ctRank3

constexpr std::array<SquareSet, 2U> hoover_chess_utils::pgn_reader::PawnLookups::ctRank3
staticconstexprprivate
Initial value:

◆ ctRank8

constexpr std::array<SquareSet, 2U> hoover_chess_utils::pgn_reader::PawnLookups::ctRank8
staticconstexprprivate
Initial value:

The documentation for this class was generated from the following file: