OChess v0.0.2
Programmer's Manual
|
Current game state displayed by BoardCanvas. More...
#include <BoardCanvas.hpp>
Classes | |
struct | Arrow |
State of an arrow. More... | |
struct | Square |
State of an highlighted square. More... | |
Public Types | |
typedef struct GameState::Arrow | Arrow |
State of an arrow. | |
typedef struct GameState::Square | Square |
State of an highlighted square. | |
Public Attributes | |
std::string | white |
std::string | black |
std::string | board |
Contains all the board squares with their pieces in the same order as the FEN specification. More... | |
std::string | promotion |
When there is a pending promotion, this variable contains the coordinate of the square on which the promotion takes place. | |
std::map< char, std::uint8_t > | captures |
std::vector< Square > | squares_hl |
Square to highlight (combined to BoardCanvas::squares_hl) | |
std::vector< Arrow > | arrows |
Arrow to draw (combined to BoardCanvas::arrows) | |
bool | is_black_turn |
bool | mat_black |
bool | mat_white |
bool | show_evalbar =false |
float | eval =0 |
ClockTime | black_time ={-1,-1,-1} |
ClockTime | white_time ={-1,-1,-1} |
Current game state displayed by BoardCanvas.
std::string GameState::board |
Contains all the board squares with their pieces in the same order as the FEN specification.
For example, the following board
"rnb RNB"
contains a black rook on a8, a black knight on b8, a black bishop on c8, a white rook on a1, a white knight on b1 and a white bishop on c1