My Project
|
Square, Owner, Promoted : 10 bits. More...
#include <miniBoard.h>
Public Member Functions | |
OPSquare () | |
OPSquare (const Piece &p) | |
OPSquare (const int i) | |
bool | isPromoted () const |
![]() | |
OSquare () | |
OSquare (const Piece &p) | |
OSquare (const int i) | |
Square | getSquare () const |
Player | getOwner () const |
operator int () const | |
Static Public Attributes | |
static const size_t | total_bits = 10 |
![]() | |
static const size_t | total_bits = 9 |
Additional Inherited Members | |
![]() | |
int | value |
Square, Owner, Promoted : 10 bits.
For PAWN, LANCE, KNIGHT, SILVER, BISHOP and ROOK. 1: Promote 0:unpromoted; 1:promoted 2: Owner 0:Black; 1:WHITE 3456: Square x 789A: Square y
Definition at line 64 of file miniBoard.h.
|
inline |
Definition at line 68 of file miniBoard.h.
|
inline |
Definition at line 69 of file miniBoard.h.
References osl::Piece::isPromoted(), and osl::book::OSquare::value.
|
inline |
Definition at line 77 of file miniBoard.h.
|
inline |
Definition at line 79 of file miniBoard.h.
References osl::book::OSquare::value.
|
static |
Definition at line 67 of file miniBoard.h.
Referenced by osl::book::MiniBoard::toBits().