22 explicit
bCase(std::
string const& s);
30 bCase& operator=(std::
string const& s);
32 operator std::
string() const;
33 bool operator==(
bCase const rhs) const;
43 return static_cast<case_t>((r << 3) | c);
46 return (c == 0xFF) ? -1 : (c & 0x07);
49 return (c == 0xFF) ? -1 : ((c >> 3) & 0x07);
std::vector< case_t > caselist_t
position on board, defined as 255 if invalid used primarily to compose a move or a source or destinat...
static constexpr rank_t rank(case_t const c)
static constexpr rank_t rank0(case_t const c)
static constexpr column_t column0(case_t const c)
friend std::ostream & operator<<(std::ostream &os, bCase const &bc)
static constexpr case_t coordToCase(column_t const c, rank_t const r)
static constexpr column_t column(case_t const c)
static constexpr boardbitmap_t caseToBit(case_t const c)