mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-05-15 11:57:41 +00:00
Improve pawn promotion code
This commit is contained in:
parent
840e68807c
commit
b9aa1085df
6 changed files with 48 additions and 11 deletions
src/game_tab/left_panel/board
|
@ -12,6 +12,7 @@
|
|||
|
||||
// Local events
|
||||
wxDECLARE_EVENT(PLAY_MOVE_EVENT, wxCommandEvent);
|
||||
wxDECLARE_EVENT(PLAY_PROMOTE, wxCommandEvent);
|
||||
|
||||
#define REFRESH_MOUSE_LOCATION() \
|
||||
{ \
|
||||
|
@ -74,6 +75,7 @@ typedef struct GameState {
|
|||
} Square;
|
||||
std::string white, black;
|
||||
std::string board;
|
||||
std::string promotion;
|
||||
std::map<char, std::uint8_t> captures;
|
||||
std::vector<Square> squares_hl;
|
||||
std::vector<Arrow> arrows;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue