Improve pawn promotion code

This commit is contained in:
Loic Guegan 2023-01-10 16:01:26 +01:00
parent 840e68807c
commit b9aa1085df
6 changed files with 48 additions and 11 deletions
src/game_tab/left_panel/board

View file

@ -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;