From b9aa1085df08c4a8901ca0433de25a170b33e6d6 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 10 Jan 2023 16:01:26 +0100 Subject: Improve pawn promotion code --- src/game_tab/Game.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game_tab/Game.hpp') 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(); -- cgit v1.2.3