diff options
Diffstat (limited to 'src/game_tab/Game.cpp')
| -rw-r--r-- | src/game_tab/Game.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game_tab/Game.cpp b/src/game_tab/Game.cpp index def179c..315a4de 100644 --- a/src/game_tab/Game.cpp +++ b/src/game_tab/Game.cpp @@ -100,6 +100,12 @@ bool Game::IsCheckmate(bool forBlack){ return !arbiter.IsBlackTurn() && arbiter.IsCheckMate(); } +bool Game::IsPromotionMove(std::string absolute_move){ + arbiter.Setup(GetFen()); + arbiter.Play(absolute_move); + return(arbiter.WasPawnPromotion()); +} + bool Game::Play(std::string move,char promotion) { wxLogDebug("Playing move %s", move); std::string fen = GetFen(); |
