diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-10 16:01:26 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-10 16:01:26 +0100 |
| commit | b9aa1085df08c4a8901ca0433de25a170b33e6d6 (patch) | |
| tree | 72034a2ff87c3187529a0dc6ffdece212b6134a6 /src/game_tab/Game.hpp | |
| parent | 840e68807cfbb23fcc2718496d07a6d3ec5fc8ed (diff) | |
Improve pawn promotion code
Diffstat (limited to 'src/game_tab/Game.hpp')
| -rw-r--r-- | src/game_tab/Game.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game_tab/Game.hpp b/src/game_tab/Game.hpp index 0590027..2fa9bcd 100644 --- a/src/game_tab/Game.hpp +++ b/src/game_tab/Game.hpp @@ -29,7 +29,7 @@ public: HalfMove *GetMoves(); std::string GetFen(); std::string GetResult(); - bool Play(std::string move); + bool Play(std::string move,char promotion='q'); bool IsBlackToPlay(); bool IsCheckmate(bool forBlack); void Previous(); |
